Merge pull request #1641 from webtorrent/electron-6

Update to Electron 6
This commit is contained in:
Feross Aboukhadijeh
2019-08-13 13:05:56 -07:00
committed by GitHub
6 changed files with 18 additions and 13 deletions

View File

@@ -13,6 +13,8 @@ const menu = require('./menu')
const State = require('../renderer/lib/state')
const windows = require('./windows')
const WEBTORRENT_VERSION = require('webtorrent/package.json').version
let shouldQuit = false
let argv = sliceArgv(process.argv)
@@ -96,6 +98,12 @@ function init () {
})
}
// Enable app logging into default directory, i.e. /Library/Logs/WebTorrent
// on Mac, %APPDATA% on Windows, $XDG_CONFIG_HOME or ~/.config on Linux.
app.setAppLogsPath()
app.userAgentFallback = `WebTorrent/${WEBTORRENT_VERSION} (https://webtorrent.io)`
app.on('open-file', onOpen)
app.on('open-url', onOpen)