From 945a61fafd2239731fe5a345d9ba60a86fb6efd7 Mon Sep 17 00:00:00 2001 From: TC Date: Sun, 10 Jan 2021 14:10:16 +0100 Subject: [PATCH] Remove warning by setting contextIsolation --- index.js | 1 + 1 file changed, 1 insertion(+) 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