From 80f7c82f93c31903871795ced37bdbc26c5ff674 Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Fri, 25 Mar 2016 12:45:13 -0700 Subject: [PATCH] finish standardizing crash reporter --- lib/common/api/crash-reporter.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/common/api/crash-reporter.js b/lib/common/api/crash-reporter.js index 25054b72527d..f10887550113 100644 --- a/lib/common/api/crash-reporter.js +++ b/lib/common/api/crash-reporter.js @@ -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()