1
0
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:
Jari Kolehmainen 2022-06-08 15:35:48 +03:00
parent db65a89ee0
commit 313f4e7551

View File

@ -159,6 +159,7 @@ const createElectronWindowFor = getInjectable({
// Always disable Node.js integration for all webviews
webPreferences.nodeIntegration = false;
webPreferences.nativeWindowOpen = false;
})
.setWindowOpenHandler((details) => {