Skip to content

Commit

Permalink
Adding worldSafeExecuteJavaScript per electron/electron#24712
Browse files Browse the repository at this point in the history
  • Loading branch information
acrosman committed Aug 19, 2020
1 parent c0b7d5d commit ed4fb5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.js
Expand Up @@ -45,6 +45,7 @@ function createWindow() {
nodeIntegrationInWorker: false,
nodeIntegrationInSubFrames: false,
contextIsolation: true, // Enabling contextIsolation to protect against prototype pollution.
worldSafeExecuteJavaScript: true, // https://github.com/electron/electron/pull/24712
enableRemoteModule: false, // Turn off remote to avoid temptation.
preload: path.join(app.getAppPath(), 'app/preload.js'),
},
Expand Down

0 comments on commit ed4fb5a

Please sign in to comment.