1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Disable nativeWindowOpen on webviews (#5582)

This commit is contained in:
Jari Kolehmainen 2022-06-08 16:37:57 +03:00 committed by GitHub
parent d1a5487384
commit 72c82c443e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) => {