disable nativeWindowOpen on webviews

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2022-06-08 15:35:48 +03:00
1 parent db65a89ee0
commit 313f4e7551
1 file changed
+1
@@ -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) => {