Skip to content

Commit

Permalink
fix globalThis.window
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasstrehle committed Oct 11, 2024
1 parent d5ab76a commit a841ab1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import { Blockchain } from "./network/blockchain_adapter.ts"
import { Runtime } from "./runtime/runtime.ts";
Runtime.Blockchain = Blockchain;


// workaround for backwards compatibility with Deno < 2.0.0
globalThis.window = globalThis;
if (!globalThis.window) {
globalThis.window = globalThis;
}

await init();

0 comments on commit a841ab1

Please sign in to comment.