move crash reporter placeholder

This commit is contained in:
Feross Aboukhadijeh
2016-03-21 01:10:00 -07:00
parent 13902daedd
commit 3ba4b563ac
2 changed files with 10 additions and 8 deletions

View File

@@ -1,10 +1,2 @@
console.time('init') console.time('init')
require('./main') require('./main')
// report crashes
// require('crash-reporter').start({
// productName: 'WebTorrent',
// companyName: 'WebTorrent',
// submitURL: 'https://webtorrent.io/crash-report',
// autoSubmit: true
// })

View File

@@ -38,6 +38,7 @@ var argv = sliceArgv(process.argv)
app.on('open-file', onOpen) app.on('open-file', onOpen)
app.on('open-url', 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.ipcReady = false // main window has finished loading and IPC is ready
app.isQuitting = false app.isQuitting = false
@@ -91,3 +92,12 @@ function onOpen (e, torrentId) {
function sliceArgv (argv) { function sliceArgv (argv) {
return argv.slice(config.IS_PRODUCTION ? 1 : 2) 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
// })
}