We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 923c06c commit 0060b06Copy full SHA for 0060b06
src/ffi.ts
@@ -88,7 +88,7 @@ export function unload() {
88
89
// Automatically run the preload if we're on windows and on the main thread.
90
if (Deno.build.os === "windows") {
91
- if ((self as never)["window"]) {
+ if (self === globalThis) {
92
await preload();
93
} else if (!await checkForWebView2Loader()) {
94
throw new Error(
0 commit comments