Also upload product name, company name and version in crash report.

This commit is contained in:
Cheng Zhao 2013-11-26 10:19:50 +08:00
parent 1fc9ef33db
commit 151b2b5ad5
3 changed files with 13 additions and 1 deletions

View file

@ -12,6 +12,14 @@ class CrashReporter
ignoreSystemCrashHandler ?= false
extra ?= {}
extra._productName ?= productName
extra._companyName ?= companyName
extra._version ?=
if process.__atom_type is 'browser'
require('app').getVersion()
else
require('remote').require('app').getVersion()
start = -> binding.start productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler, extra
if process.platform is 'darwin'