Skip to content

Commit

Permalink
Merge pull request #80 from andycb/fixAppInElectron12
Browse files Browse the repository at this point in the history
Disable ContextIsolation in Electron 12
  • Loading branch information
andycb authored Apr 25, 2021
2 parents b178f85 + 0e9f4e1 commit 5fef393
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/electronMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function createWindow(): void {
height: 560,
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
enableRemoteModule: true,
preload: path.join(__dirname, '/preload.js'),
},
Expand Down

0 comments on commit 5fef393

Please sign in to comment.