Remove warning by setting contextIsolation

This commit is contained in:
TC
2021-01-10 14:10:16 +01:00
parent 1ba166a172
commit 945a61fafd

View File

@ -75,6 +75,7 @@ function createMainWindow() {
backgroundColor: "#000",
show: false,
webPreferences: {
contextIsolation: true,
preload: path.join(__dirname, "preload.js"),
nodeIntegrationInSubFrames: true,
nativeWindowOpen: true, // window.open return Window object(like in regular browsers), not BrowserWindowProxy