Skip to content

Commit

Permalink
Set enableRemoteModule to true in Electron.BrowserWindow.webPreferences
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonni committed Oct 5, 2020
1 parent f241e42 commit 6ace4eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const createWindow = () => {
webPreferences: {
preload: MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY,
nodeIntegration: true,
enableRemoteModule: true,
webSecurity: false,
webviewTag: true
}
Expand Down

0 comments on commit 6ace4eb

Please sign in to comment.