Merge pull request #1643 from webtorrent/electron-5

Update to Electron 5
This commit is contained in:
Feross Aboukhadijeh
2019-08-09 15:02:49 -07:00
committed by GitHub
5 changed files with 13 additions and 4 deletions

6
package-lock.json generated
View File

@@ -2614,9 +2614,9 @@
"dev": true
},
"electron": {
"version": "4.2.8",
"resolved": "https://registry.npmjs.org/electron/-/electron-4.2.8.tgz",
"integrity": "sha512-/D9zfs+EWLN4yLV7tu2kWyXUnZQ3CKG1cmWbXeSFXF+0dNXQ8iFpY49dqZRoHGIBImFfp2x4N3Zc5Tu7rw3PJw==",
"version": "5.0.9",
"resolved": "https://registry.npmjs.org/electron/-/electron-5.0.9.tgz",
"integrity": "sha512-yCt+lnQr47OWB3Oei19odMVB8VKzecTwZLm75PB56f/keeJAM3UqV7+dtjKlPdKt0hJ4sWxe4vjxGPO/oZDv7A==",
"dev": true,
"requires": {
"@types/node": "^10.12.18",

View File

@@ -55,7 +55,7 @@
"buble": "^0.19.6",
"cross-zip": "^2.0.1",
"depcheck": "^0.8.0",
"electron": "^4.0.0",
"electron": "~5.0.9",
"electron-osx-sign": "^0.4.11",
"electron-packager": "^14.0.4",
"electron-winstaller": "^2.6.4",

View File

@@ -24,6 +24,9 @@ function init () {
skipTaskbar: true,
title: 'About ' + config.APP_WINDOW_TITLE,
useContentSize: true,
webPreferences: {
nodeIntegration: true
},
width: 300
})

View File

@@ -43,6 +43,9 @@ function init (state, options) {
titleBarStyle: 'hiddenInset', // Hide title bar (Mac)
useContentSize: true, // Specify web page size without OS chrome
width: initialBounds.width,
webPreferences: {
nodeIntegration: true
},
x: initialBounds.x,
y: initialBounds.y
})

View File

@@ -25,6 +25,9 @@ function init () {
skipTaskbar: true,
title: 'webtorrent-hidden-window',
useContentSize: true,
webPreferences: {
nodeIntegration: true
},
width: 150
})