Skip to content

Commit

Permalink
Update to Electron 5
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Aug 7, 2019
1 parent 7a3c1f0 commit 6cd8af9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions src/main/windows/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ function init () {
skipTaskbar: true,
title: 'About ' + config.APP_WINDOW_TITLE,
useContentSize: true,
webPreferences: {
nodeIntegration: true
},
width: 300
})

Expand Down
3 changes: 3 additions & 0 deletions src/main/windows/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down
3 changes: 3 additions & 0 deletions src/main/windows/webtorrent.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ function init () {
skipTaskbar: true,
title: 'webtorrent-hidden-window',
useContentSize: true,
webPreferences: {
nodeIntegration: true
},
width: 150
})

Expand Down

0 comments on commit 6cd8af9

Please sign in to comment.