Disable Electron-augmented window.open

https://electronjs.org/docs/api/browser-window#new-browserwindowoptions
This commit is contained in:
Scott Nonnenberg 2018-05-23 15:54:10 -07:00
parent 34f423b52c
commit 3a1d64b19d
1 changed files with 2 additions and 0 deletions

View File

@ -191,6 +191,7 @@ function createWindow() {
nodeIntegrationInWorker: false,
// sandbox: true,
preload: path.join(__dirname, 'preload.js'),
nativeWindowOpen: true,
},
icon: path.join(__dirname, 'images', 'icon_256.png'),
},
@ -418,6 +419,7 @@ function showAbout() {
nodeIntegration: false,
nodeIntegrationInWorker: false,
preload: path.join(__dirname, 'preload.js'),
nativeWindowOpen: true,
},
parent: mainWindow,
};