Skip to content

Commit 5afe9ca

Browse files
authored
Merge pull request #4 from filestack/bugfix/multipleinstances
fix(instances): move adding prefix before check if module is loaded
2 parents 7f74ae2 + c7bba8b commit 5afe9ca

File tree

3 files changed

+993
-829
lines changed

3 files changed

+993
-829
lines changed

lib/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,8 @@ export const loadModule = (id: string, url: string) => {
9191
throw new Error('Module id is required')
9292
}
9393

94-
let moduleDefinition = modules[id];
95-
9694
id = MODULE_PREFIX + id;
95+
let moduleDefinition = modules[id];
9796

9897
if (!moduleDefinition) {
9998
modules[id] = {};

0 commit comments

Comments
 (0)