Only start crash service on Windows.
This commit is contained in:
parent
7660816468
commit
b1f9c4dfc5
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue