move crash reporter placeholder
This commit is contained in:
parent
13902daedd
commit
3ba4b563ac
2 changed files with 10 additions and 8 deletions
8
index.js
8
index.js
|
|
@ -1,10 +1,2 @@
|
|||
console.time('init')
|
||||
require('./main')
|
||||
|
||||
// report crashes
|
||||
// require('crash-reporter').start({
|
||||
// productName: 'WebTorrent',
|
||||
// companyName: 'WebTorrent',
|
||||
// submitURL: 'https://webtorrent.io/crash-report',
|
||||
// autoSubmit: true
|
||||
// })
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ var argv = sliceArgv(process.argv)
|
|||
|
||||
app.on('open-file', onOpen)
|
||||
app.on('open-url', onOpen)
|
||||
app.on('will-finish-launching', setupCrashReporter)
|
||||
|
||||
app.ipcReady = false // main window has finished loading and IPC is ready
|
||||
app.isQuitting = false
|
||||
|
|
@ -91,3 +92,12 @@ function onOpen (e, torrentId) {
|
|||
function sliceArgv (argv) {
|
||||
return argv.slice(config.IS_PRODUCTION ? 1 : 2)
|
||||
}
|
||||
|
||||
function setupCrashReporter () {
|
||||
// require('crash-reporter').start({
|
||||
// productName: 'WebTorrent',
|
||||
// companyName: 'WebTorrent',
|
||||
// submitURL: 'https://webtorrent.io/crash-report',
|
||||
// autoSubmit: true
|
||||
// })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue