Merge pull request #340 from VikasShashidhar/Electron-430

ELECTRON-430: Enable context isolation
This commit is contained in:
Vikas Shashidhar
2018-05-03 12:09:20 +05:30
committed by GitHub
6 changed files with 6 additions and 0 deletions

View File

@@ -136,6 +136,7 @@ let config = {
transparent: true,
acceptFirstMouse: true,
webPreferences: {
contextIsolation: true,
preload: path.join(__dirname, 'electron-notify-preload.js'),
sandbox: sandboxed,
nodeIntegration: isNodeEnv

View File

@@ -27,6 +27,7 @@ let windowConfig = {
autoHideMenuBar: true,
resizable: false,
webPreferences: {
contextIsolation: true,
preload: path.join(__dirname, 'configure-notification-position-preload.js'),
sandbox: sandboxed,
nodeIntegration: false