We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85be3ec commit ff44d58Copy full SHA for ff44d58
src/ffi.ts
@@ -88,12 +88,14 @@ 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 === globalThis) {
92
- await preload();
93
- } else if (!await checkForWebView2Loader()) {
94
- throw new Error(
95
- "WebView2Loader.dll does not exist! Make sure to run preload() from the main thread.",
96
- );
+ if (!await checkForWebView2Loader()) {
+ if (self === globalThis) {
+ await preload();
+ } else {
+ throw new Error(
+ "WebView2Loader.dll does not exist! Make sure to run preload() from the main thread.",
97
+ );
98
+ }
99
}
100
101
0 commit comments