From b1f9c4dfc5482349fecaa7c2006ed4717d7c9ccc Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 26 Feb 2014 20:58:17 +0800 Subject: [PATCH] Only start crash service on Windows. --- common/api/lib/crash-reporter.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/api/lib/crash-reporter.coffee b/common/api/lib/crash-reporter.coffee index 2e7b742..b99d70f 100644 --- a/common/api/lib/crash-reporter.coffee +++ b/common/api/lib/crash-reporter.coffee @@ -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 -- 2.7.4