move crash reporter placeholder
This commit is contained in:
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
|
||||
// })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user