From b86630cff38855821583d4bfbe988b595d7a7b9e Mon Sep 17 00:00:00 2001 From: Aaron Crosman Date: Tue, 18 Aug 2020 22:19:10 -0400 Subject: [PATCH] Adding world safe flag from https://github.com/electron/electron/pull/24114 --- main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/main.js b/main.js index 4a797e4..c5124b6 100644 --- a/main.js +++ b/main.js @@ -36,6 +36,7 @@ function createWindow() { nodeIntegrationInWorker: false, nodeIntegrationInSubFrames: false, contextIsolation: true, // Protect against prototype pollution. + worldSafeExecuteJavaScript: true, // https://github.com/electron/electron/pull/24114 enableRemoteModule: false, // Turn off remote to avoid temptation. preload: path.join(app.getAppPath(), 'app/preload.js'), },