finish standardizing crash reporter

This commit is contained in:
Zeke Sikelianos 2016-03-25 12:45:13 -07:00 committed by Kevin Sawicki
parent f61010df96
commit 80f7c82f93

View file

@ -63,7 +63,7 @@ var CrashReporter = (function () {
binding.start(this.productName, companyName, submitURL, autoSubmit, ignoreSystemCrashHandler, extra)
}
if (process.platform === 'win32') {
args = ["--reporter-url=" + submitURL, "--application-name=" + this.productName, "--v=1"]
args = ['--reporter-url=' + submitURL, '--application-name=' + this.productName, '--v=1']
env = {
ATOM_SHELL_INTERNAL_CRASH_SERVICE: 1
}
@ -88,12 +88,11 @@ var CrashReporter = (function () {
CrashReporter.prototype.getUploadedReports = function () {
var log, tmpdir
tmpdir = process.platform === 'win32' ? os.tmpdir() : '/tmp'
log = process.platform === 'darwin' ? path.join(tmpdir, this.productName + " Crashes") : path.join(tmpdir, this.productName + " Crashes", 'uploads.log')
log = process.platform === 'darwin' ? path.join(tmpdir, this.productName + ' Crashes') : path.join(tmpdir, this.productName + ' Crashes', 'uploads.log')
return binding._getUploadedReports(log)
}
return CrashReporter
})()
module.exports = new CrashReporter
module.exports = new CrashReporter()