Skip to content

Commit

Permalink
Disable contextIsolation
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Mar 10, 2021
1 parent 442c4c5 commit d323dbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ async function createWindow () {
// Use pluginOptions.nodeIntegration, leave this alone
// See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info
nodeIntegration: process.env.ELECTRON_NODE_INTEGRATION,
contextIsolation: !process.env.ELECTRON_NODE_INTEGRATION,
preload: 'src/preload.js',
enableRemoteModule: true
}
Expand Down

0 comments on commit d323dbe

Please sign in to comment.