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 = "\
330330 \ inCallback--;\n \
331331 \ };\n \
332332 \ if(batch[1] && (initialSyncDepth || 0) === 0) {\n \
333- \ window .requestAnimationFrame(processBatch);\n \
333+ \ globalThis .requestAnimationFrame(processBatch);\n \
334334 \ }\n \
335335 \ else {\n \
336- \ processBatch(window .performance ? window .performance.now() : null);\n \
336+ \ processBatch(globalThis .performance ? globalThis .performance.now() : null);\n \
337337 \ }\n \
338338 \ };\n \
339339 \ runBatch(batch);\n \
@@ -444,7 +444,7 @@ ghcjsHelpers = "\
444444 \ };\n \
445445 \}\n \
446446 \function h$newByteArrayFromBase64String(base64) {\n \
447- \ var bin = window .atob(base64);\n \
447+ \ var bin = globalThis .atob(base64);\n \
448448 \ var ba = h$newByteArray(bin.length);\n \
449449 \ var u8 = ba.u8;\n \
450450 \ for (var i = 0; i < bin.length; i++) {\n \
@@ -459,6 +459,6 @@ ghcjsHelpers = "\
459459 \ for (var i = off; i < end; i++) {\n \
460460 \ bin += String.fromCharCode(u8[i]);\n \
461461 \ }\n \
462- \ return window .btoa(bin);\n \
462+ \ return globalThis .btoa(bin);\n \
463463 \}\n \
464464 \"
You can’t perform that action at this time.
0 commit comments