fix Connection Error when using in-app-menu

This commit is contained in:
Araxeus
2021-04-03 22:59:20 +03:00
parent 1cae35a62b
commit 8b6c60bb17

View File

@ -93,6 +93,7 @@ function createMainWindow() {
contextIsolation: false,
preload: path.join(__dirname, "preload.js"),
nodeIntegrationInSubFrames: true,
nodeIntegration: true,
nativeWindowOpen: true, // window.open return Window object(like in regular browsers), not BrowserWindowProxy
enableRemoteModule: true,
affinity: "main-window", // main window, and addition windows should work in one process