Disable Electron-augmented window.open
https://electronjs.org/docs/api/browser-window#new-browserwindowoptions
This commit is contained in:
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,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user