Don't rely on window (#4775)

This commit is contained in:
Moritz Hedtke authored and GitHub committed 2025-10-13 12:44:03 -07:00
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 = {