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,
|
nodeIntegrationInWorker: false,
|
||||||
// sandbox: true,
|
// sandbox: true,
|
||||||
preload: path.join(__dirname, 'preload.js'),
|
preload: path.join(__dirname, 'preload.js'),
|
||||||
|
nativeWindowOpen: true,
|
||||||
},
|
},
|
||||||
icon: path.join(__dirname, 'images', 'icon_256.png'),
|
icon: path.join(__dirname, 'images', 'icon_256.png'),
|
||||||
},
|
},
|
||||||
|
@ -418,6 +419,7 @@ function showAbout() {
|
||||||
nodeIntegration: false,
|
nodeIntegration: false,
|
||||||
nodeIntegrationInWorker: false,
|
nodeIntegrationInWorker: false,
|
||||||
preload: path.join(__dirname, 'preload.js'),
|
preload: path.join(__dirname, 'preload.js'),
|
||||||
|
nativeWindowOpen: true,
|
||||||
},
|
},
|
||||||
parent: mainWindow,
|
parent: mainWindow,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue