Skip to content

Commit

Permalink
Remove warning by setting contextIsolation
Browse files Browse the repository at this point in the history
  • Loading branch information
th-ch committed Jan 10, 2021
1 parent 1ba166a commit 945a61f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 945a61f

Please sign in to comment.