Skip to content

Instantly share code, notes, and snippets.

@dcposch
Created June 13, 2016 23:22
Show Gist options
  • Save dcposch/22f72b735514883627edc6d9f178ef0e to your computer and use it in GitHub Desktop.
Save dcposch/22f72b735514883627edc6d9f178ef0e to your computer and use it in GitHub Desktop.
// In *both* the main and renderer processes
// For example, in both main/index.js and renderer/index.js
var crashReporter = require('../crash-reporter')
crashReporter.init()
// Separately, create crash-reporter.js, shared by main and renderer:
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
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment