From bd7d4b3c80aa0c9524366e6218582594ddbdaead Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 21 Mar 2016 01:10:00 -0700 Subject: [PATCH] move crash reporter placeholder --- index.js | 8 -------- main/index.js | 10 ++++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index 500486c1..151415b0 100644 --- a/index.js +++ b/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 -// }) diff --git a/main/index.js b/main/index.js index 7ae290f5..7d77750f 100644 --- a/main/index.js +++ b/main/index.js @@ -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 + // }) +}