2013-11-14 05:33:09 +00:00
|
|
|
binding = process.atomBinding 'crash_reporter'
|
|
|
|
|
|
|
|
class CrashReporter
|
2013-11-15 03:00:48 +00:00
|
|
|
start: (options={}) ->
|
2013-11-18 10:27:50 +00:00
|
|
|
{productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler, extra} = options
|
2013-11-14 05:33:09 +00:00
|
|
|
|
|
|
|
productName ?= 'Atom-Shell'
|
|
|
|
companyName ?= 'GitHub, Inc'
|
|
|
|
submitUrl ?= 'http://54.249.141.25'
|
|
|
|
autoSubmit ?= true
|
|
|
|
ignoreSystemCrashHandler ?= false
|
2013-11-18 10:27:50 +00:00
|
|
|
extra ?= {}
|
2013-11-14 05:33:09 +00:00
|
|
|
|
2013-11-18 10:27:50 +00:00
|
|
|
binding.start productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler, extra
|
2013-11-14 05:33:09 +00:00
|
|
|
|
|
|
|
module.exports = new CrashReporter
|