Skip to content

Commit 0f61065

Browse files
committed
Replace window with globalThis to fix Deno 2.0 support
1 parent ea0d299 commit 0f61065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/src/lib/template/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export function decode64(base64: string): ArrayBufferLike {
2-
var binary_string = window.atob(base64);
2+
var binary_string = globalThis.atob(base64);
33
var len = binary_string.length;
44
var bytes = new Uint8Array(len);
55
for (var i = 0; i < len; i++) {

0 commit comments

Comments
 (0)