Skip to content

Commit

Permalink
Adding world safe flag from electron/electron#24114
Browse files Browse the repository at this point in the history
  • Loading branch information
acrosman committed Aug 19, 2020
1 parent 8ea2348 commit b86630c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.js
Expand Up @@ -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'),
},
Expand Down

0 comments on commit b86630c

Please sign in to comment.