Enable customing upload parameters for sending crash report.
This commit is contained in:
parent
f8f09eb974
commit
d181ff4e7f
4 changed files with 22 additions and 16 deletions
|
@ -2,14 +2,15 @@ binding = process.atomBinding 'crash_reporter'
|
|||
|
||||
class CrashReporter
|
||||
start: (options={}) ->
|
||||
{productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler} = options
|
||||
{productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler, extra} = options
|
||||
|
||||
productName ?= 'Atom-Shell'
|
||||
companyName ?= 'GitHub, Inc'
|
||||
submitUrl ?= 'http://54.249.141.25'
|
||||
autoSubmit ?= true
|
||||
ignoreSystemCrashHandler ?= false
|
||||
extra ?= {}
|
||||
|
||||
binding.start productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler
|
||||
binding.start productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler, extra
|
||||
|
||||
module.exports = new CrashReporter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue