Disable Electron-augmented window.open
https://electronjs.org/docs/api/browser-window#new-browserwindowoptions
This commit is contained in:
parent
34f423b52c
commit
3a1d64b19d
1 changed files with 2 additions and 0 deletions
2
main.js
2
main.js
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue