Disable nativeWindowOpen on webviews (#5582)

This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2022-06-08 09:37:57 -04:00
1 parent d1a5487384
commit 72c82c443e
1 file changed
+1
@@ -159,6 +159,7 @@ const createElectronWindowFor = getInjectable({
// Always disable Node.js integration for all webviews
webPreferences.nodeIntegration = false;
webPreferences.nativeWindowOpen = false;
})
.setWindowOpenHandler((details) => {