Update to Electron 5

This commit is contained in:
Feross Aboukhadijeh
2019-08-07 09:51:08 -07:00
parent 7a3c1f0a10
commit 6cd8af91be
5 changed files with 13 additions and 4 deletions

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
})