File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
jsaddle/src/Language/Javascript/JSaddle/Run Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -330,10 +330,10 @@ runBatch send sendSync = "\
330
330
\ inCallback--;\n \
331
331
\ };\n \
332
332
\ if(batch[1] && (initialSyncDepth || 0) === 0) {\n \
333
- \ window .requestAnimationFrame(processBatch);\n \
333
+ \ globalThis .requestAnimationFrame(processBatch);\n \
334
334
\ }\n \
335
335
\ else {\n \
336
- \ processBatch(window .performance ? window .performance.now() : null);\n \
336
+ \ processBatch(globalThis .performance ? globalThis .performance.now() : null);\n \
337
337
\ }\n \
338
338
\ };\n \
339
339
\ runBatch(batch);\n \
@@ -444,7 +444,7 @@ ghcjsHelpers = "\
444
444
\ };\n \
445
445
\}\n \
446
446
\function h$newByteArrayFromBase64String(base64) {\n \
447
- \ var bin = window .atob(base64);\n \
447
+ \ var bin = globalThis .atob(base64);\n \
448
448
\ var ba = h$newByteArray(bin.length);\n \
449
449
\ var u8 = ba.u8;\n \
450
450
\ for (var i = 0; i < bin.length; i++) {\n \
@@ -459,6 +459,6 @@ ghcjsHelpers = "\
459
459
\ for (var i = off; i < end; i++) {\n \
460
460
\ bin += String.fromCharCode(u8[i]);\n \
461
461
\ }\n \
462
- \ return window .btoa(bin);\n \
462
+ \ return globalThis .btoa(bin);\n \
463
463
\}\n \
464
464
\"
You can’t perform that action at this time.
0 commit comments