Refactor crash reporter to be more cross-platform friendly.
This commit is contained in:
parent
801a19504a
commit
9007a45051
8 changed files with 171 additions and 113 deletions
|
@ -1 +1,15 @@
|
|||
module.exports = process.atomBinding 'crash_reporter'
|
||||
binding = process.atomBinding 'crash_reporter'
|
||||
|
||||
class CrashReporter
|
||||
start: (options) ->
|
||||
{productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler} = options
|
||||
|
||||
productName ?= 'Atom-Shell'
|
||||
companyName ?= 'GitHub, Inc'
|
||||
submitUrl ?= 'http://54.249.141.25'
|
||||
autoSubmit ?= true
|
||||
ignoreSystemCrashHandler ?= false
|
||||
|
||||
binding.start productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler
|
||||
|
||||
module.exports = new CrashReporter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue