Don't rely on window (#4775)
This commit is contained in:
1 parent
cf893dc94a
commit
6d5e1ac8de
1 file changed
+1
-1
@@ -7,7 +7,7 @@ export function makeLoad(url, deps, fusedImports, initIt) {
|
||||
if (alreadyLoaded) return;
|
||||
try {
|
||||
const response = await fetch(url);
|
||||
const initSync = initIt || window.__wasm_split_main_initSync;
|
||||
const initSync = initIt || globalThis.__wasm_split_main_initSync;
|
||||
const mainExports = initSync(undefined, undefined);
|
||||
|
||||
let imports = {
|
||||
|
||||
Reference in new issue
Block a user