diff --git a/index.js b/index.js index 6e2e3756..4d5fb9d6 100644 --- a/index.js +++ b/index.js @@ -75,6 +75,7 @@ function createMainWindow() { backgroundColor: "#000", show: false, webPreferences: { + contextIsolation: true, preload: path.join(__dirname, "preload.js"), nodeIntegrationInSubFrames: true, nativeWindowOpen: true, // window.open return Window object(like in regular browsers), not BrowserWindowProxy