Skip to content

Commit

Permalink
Enable context isolation (#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
deanwhillier authored Aug 2, 2019
1 parent eacd1c6 commit ee8f919
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/mainWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ function createMainWindow(config, options) {

mainWindow.webContents.on('will-attach-webview', (event, webPreferences) => {
webPreferences.nodeIntegration = false;
webPreferences.contextIsolation = true;
});

mainWindow.once('ready-to-show', () => {
Expand Down

0 comments on commit ee8f919

Please sign in to comment.