diff --git a/src/main.ts b/src/main.ts index 960f7c5..f68e8f7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -26,7 +26,13 @@ function launch() { height: 600, minWidth: 600, backgroundColor: 'white', - titleBarStyle: 'hidden' + titleBarStyle: 'hidden', + webPreferences: { + // Need `contextIslation` and `worldSafeExecuteJavaScript` both set + // to silence recent `webFrame.executeJavaScript` warnings. + contextIsolation: true, + worldSafeExecuteJavaScript: true + }, }); win.loadURL(