electron 10: re-enable remote module

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
This commit is contained in:
Feross Aboukhadijeh
2020-07-15 19:45:59 -07:00
parent 57a003d7c5
commit 48ad571a59
4 changed files with 7 additions and 4 deletions

View File

@@ -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",

View File

@@ -26,7 +26,8 @@ function init () {
useContentSize: true,
webPreferences: {
nodeIntegration: true,
enableBlinkFeatures: 'AudioVideoTracks'
enableBlinkFeatures: 'AudioVideoTracks',
enableRemoteModule: true
},
width: 300
})

View File

@@ -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

View File

@@ -26,7 +26,8 @@ function init () {
useContentSize: true,
webPreferences: {
nodeIntegration: true,
enableBlinkFeatures: 'AudioVideoTracks'
enableBlinkFeatures: 'AudioVideoTracks',
enableRemoteModule: true
},
width: 150
})