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:
@@ -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",
|
||||
|
||||
@@ -26,7 +26,8 @@ function init () {
|
||||
useContentSize: true,
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
enableBlinkFeatures: 'AudioVideoTracks'
|
||||
enableBlinkFeatures: 'AudioVideoTracks',
|
||||
enableRemoteModule: true
|
||||
},
|
||||
width: 300
|
||||
})
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -26,7 +26,8 @@ function init () {
|
||||
useContentSize: true,
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
enableBlinkFeatures: 'AudioVideoTracks'
|
||||
enableBlinkFeatures: 'AudioVideoTracks',
|
||||
enableRemoteModule: true
|
||||
},
|
||||
width: 150
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user