Expose crash reporter start for child node processes

This commit is contained in:
Ramya Achutha Rao 2016-12-01 18:19:57 -08:00 committed by Kevin Sawicki
parent 61aff5ed35
commit d4b44d8b69
6 changed files with 77 additions and 11 deletions

View file

@ -1,4 +1,4 @@
const {app, BrowserWindow} = require('electron')
const {app, BrowserWindow, crashReporter} = require('electron')
const path = require('path')
let mainWindow = null
@ -20,6 +20,11 @@ exports.load = (appUrl) => {
if (process.platform === 'linux') {
options.icon = path.join(__dirname, 'icon.png')
}
crashReporter.start({
submitURL: "http://localhost:8080/uploadDump/mainDump",
companyName: "Main Company",
productName: "Main Product"
})
mainWindow = new BrowserWindow(options)
mainWindow.loadURL(appUrl)