Skip to content

Commit

Permalink
Replace window with globalThis to fix Deno 2.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Oct 15, 2024
1 parent ea0d299 commit 0f61065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/src/lib/template/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function decode64(base64: string): ArrayBufferLike {
var binary_string = window.atob(base64);
var binary_string = globalThis.atob(base64);
var len = binary_string.length;
var bytes = new Uint8Array(len);
for (var i = 0; i < len; i++) {
Expand Down

0 comments on commit 0f61065

Please sign in to comment.