mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
disable nativeWindowOpen on webviews
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
db65a89ee0
commit
313f4e7551
@ -159,6 +159,7 @@ const createElectronWindowFor = getInjectable({
|
|||||||
|
|
||||||
// Always disable Node.js integration for all webviews
|
// Always disable Node.js integration for all webviews
|
||||||
webPreferences.nodeIntegration = false;
|
webPreferences.nodeIntegration = false;
|
||||||
|
webPreferences.nativeWindowOpen = false;
|
||||||
})
|
})
|
||||||
|
|
||||||
.setWindowOpenHandler((details) => {
|
.setWindowOpenHandler((details) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user