You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib/libfs.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1705,7 +1705,7 @@ FS.staticInit();`;
1705
1705
#if FS_DEBUG
1706
1706
dbg(`forceLoadFile: ${obj.url}`)
1707
1707
#endif
1708
-
if(typeofXMLHttpRequest!='undefined'){
1708
+
if(globalThis.XMLHttpRequest){
1709
1709
abort("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");
1710
1710
}else{// Command-line.
1711
1711
try{
@@ -1824,7 +1824,7 @@ FS.staticInit();`;
1824
1824
}
1825
1825
}
1826
1826
1827
-
if(typeofXMLHttpRequest!='undefined'){
1827
+
if(globalThis.XMLHttpRequest){
1828
1828
if(!ENVIRONMENT_IS_WORKER)abort('Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc');
0 commit comments