]> khamidou — GitHub mirrors - electron.git/commitdiff
Only start crash service on Windows.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 26 Feb 2014 12:58:17 +0000 (20:58 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 26 Feb 2014 12:58:17 +0000 (20:58 +0800)
common/api/lib/crash-reporter.coffee

index 2e7b742c7adb8d681eccd2b47f64e67278127beb..b99d70fb5dfedd6b2ac7a460efc935b198a024c4 100644 (file)
@@ -22,9 +22,7 @@ class CrashReporter
 
     start = -> binding.start productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler, extra
 
-    if process.platform is 'darwin'
-      start()
-    else
+    if process.platform is 'win32'
       args = [
         "--reporter-url=#{submitUrl}"
         "--application-name=#{productName}"
@@ -34,5 +32,7 @@ class CrashReporter
 
       spawn process.execPath, args, {env, detached: true}
       start()
+    else
+      start()
 
 module.exports = new CrashReporter