Add crash reporting

This commit is contained in:
DC
2016-04-06 05:05:20 -07:00
parent 6a17aa7c76
commit 9a2f16b29a
4 changed files with 28 additions and 22 deletions

15
crash-reporter.js Normal file
View File

@@ -0,0 +1,15 @@
module.exports = {
init
}
var config = require('./config')
var electron = require('electron')
function init () {
electron.crashReporter.start({
companyName: config.APP_NAME,
productName: config.APP_NAME,
submitURL: config.CRASH_REPORT_URL
})
console.log('crash reporter started')
}