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
16 lines
310 B
JavaScript
16 lines
310 B
JavaScript
module.exports = {
|
|
init
|
|
}
|
|
|
|
function init () {
|
|
const config = require('./config')
|
|
const electron = require('electron')
|
|
|
|
electron.crashReporter.start({
|
|
productName: config.APP_NAME,
|
|
submitURL: config.CRASH_REPORT_URL,
|
|
globalExtra: { _companyName: config.APP_NAME },
|
|
compress: true
|
|
})
|
|
}
|