Skip to content

Commit

Permalink
fix(electron): handle deprecation warning of "remote" module
Browse files Browse the repository at this point in the history
  • Loading branch information
mrMetalWood committed Aug 25, 2020
1 parent a85e514 commit b0fb480
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ function createWindow() {
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
preload: path.join(__dirname, 'preload.js')
preload: path.join(__dirname, 'preload.js'),
enableRemoteModule: true
}
});

Expand Down

0 comments on commit b0fb480

Please sign in to comment.