electron 10 crash reporter changes

Crash reporter doesn't need to be started in child processes, and in fact the functions are all deprecated. Instead start it from the main process, and the child processes will automatically be covered

Change of params to crashReporter.start() function
This commit is contained in:
Feross Aboukhadijeh
2020-07-15 19:44:34 -07:00
parent 5f5b13d7fe
commit 57a003d7c5
4 changed files with 7 additions and 14 deletions

View File

@@ -3,10 +3,13 @@ console.time('init')
const electron = require('electron')
const app = electron.app
// Start crash reporter early, so it takes effect for child processes
const crashReporter = require('../crash-reporter')
crashReporter.init()
const parallel = require('run-parallel')
const config = require('../config')
const crashReporter = require('../crash-reporter')
const ipc = require('./ipc')
const log = require('./log')
const menu = require('./menu')
@@ -109,10 +112,6 @@ function init () {
ipc.init()
app.once('will-finish-launching', function () {
crashReporter.init()
})
app.once('ipcReady', function () {
log('Command line args:', argv)
processArgv(argv)