From 8b6c60bb178e3bc22c8c917f650153a960ea9ae6 Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Sat, 3 Apr 2021 22:59:20 +0300 Subject: [PATCH] fix Connection Error when using in-app-menu --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 478d2f86..bc3db73a 100644 --- a/index.js +++ b/index.js @@ -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