main: Enable contextIsolation for BrowserWindow.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-10-21 12:38:41 -07:00
parent 06eb169c65
commit c6022e94bb

View File

@@ -66,7 +66,7 @@ function createMainWindow(): Electron.BrowserWindow {
minWidth: 500,
minHeight: 400,
webPreferences: {
contextIsolation: false,
contextIsolation: true,
partition: "persist:webviewsession",
preload: require.resolve("../renderer/js/main"),
webviewTag: true,