Created
June 13, 2016 23:22
-
-
Save dcposch/22f72b735514883627edc6d9f178ef0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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