Skip to content

Commit

Permalink
electron 10: re-enable remote module
Browse files Browse the repository at this point in the history
Electron 10 disables the remote module by default. We've always tried to avoid using `remote` in WTD so there aren't many occurrances of it, but there are still a few places where we use it
  • Loading branch information
feross committed Jul 16, 2020
1 parent 57a003d commit 48ad571
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"buble": "^0.20.0",
"cross-zip": "^3.1.0",
"depcheck": "^1.0.0",
"electron": "^10.0.0-beta.11",
"electron": "~10.0.0-beta.11",
"electron-osx-sign": "^0.4.17",
"electron-packager": "^15.0.0",
"electron-winstaller": "^4.0.1",
Expand Down
3 changes: 2 additions & 1 deletion src/main/windows/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ function init () {
useContentSize: true,
webPreferences: {
nodeIntegration: true,
enableBlinkFeatures: 'AudioVideoTracks'
enableBlinkFeatures: 'AudioVideoTracks',
enableRemoteModule: true
},
width: 300
})
Expand Down
3 changes: 2 additions & 1 deletion src/main/windows/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ function init (state, options) {
width: initialBounds.width,
webPreferences: {
nodeIntegration: true,
enableBlinkFeatures: 'AudioVideoTracks'
enableBlinkFeatures: 'AudioVideoTracks',
enableRemoteModule: true
},
x: initialBounds.x,
y: initialBounds.y
Expand Down
3 changes: 2 additions & 1 deletion src/main/windows/webtorrent.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ function init () {
useContentSize: true,
webPreferences: {
nodeIntegration: true,
enableBlinkFeatures: 'AudioVideoTracks'
enableBlinkFeatures: 'AudioVideoTracks',
enableRemoteModule: true
},
width: 150
})
Expand Down

0 comments on commit 48ad571

Please sign in to comment.