Browse Source

finish standardizing crash reporter

Zeke Sikelianos 9 years ago
parent
commit
80f7c82f93
1 changed files with 3 additions and 4 deletions
  1. 3 4
      lib/common/api/crash-reporter.js

+ 3 - 4
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()