From fdf2e9942644111a107760b2abf46f160e545533 Mon Sep 17 00:00:00 2001 From: HuJun Date: Tue, 17 Aug 2021 03:12:23 +0800 Subject: [PATCH] Set `contextIsolation: false for >= Electron 13 --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 3b2fb38..15fac30 100644 --- a/index.js +++ b/index.js @@ -18,6 +18,7 @@ const createHiddenWindow = (filePath, debug) => { // https://github.com/electron/electron/issues/17241. webPreferences: { nodeIntegration: true, + contextIsolation: false }, // This is extremely useful when something with the IPC goes // wrong.