|
@@ -19,8 +19,6 @@ class CrashReporter
|
|
|
{app} = if process.type is 'browser' then electron else electron.remote
|
|
|
|
|
|
@productName ?= app.getName()
|
|
|
- companyName ?= 'GitHub, Inc'
|
|
|
- submitURL ?= 'http://54.249.141.255:1127/post'
|
|
|
autoSubmit ?= true
|
|
|
ignoreSystemCrashHandler ?= false
|
|
|
extra ?= {}
|
|
@@ -29,6 +27,14 @@ class CrashReporter
|
|
|
extra._companyName ?= companyName
|
|
|
extra._version ?= app.getVersion()
|
|
|
|
|
|
+ unless companyName?
|
|
|
+ deprecate.log('companyName is now a required option to crashReporter.start')
|
|
|
+ return
|
|
|
+
|
|
|
+ unless submitURL?
|
|
|
+ deprecate.log('submitURL is now a required option to crashReporter.start')
|
|
|
+ return
|
|
|
+
|
|
|
start = => binding.start @productName, companyName, submitURL, autoSubmit, ignoreSystemCrashHandler, extra
|
|
|
|
|
|
if process.platform is 'win32'
|
|
@@ -40,9 +46,7 @@ class CrashReporter
|
|
|
env = ATOM_SHELL_INTERNAL_CRASH_SERVICE: 1
|
|
|
|
|
|
spawn process.execPath, args, {env, detached: true}
|
|
|
- start()
|
|
|
- else
|
|
|
- start()
|
|
|
+ start()
|
|
|
|
|
|
getLastCrashReport: ->
|
|
|
reports = this.getUploadedReports()
|
|
@@ -61,6 +65,5 @@ class CrashReporter
|
|
|
path.join tmpdir, "#{@productName} Crashes", 'uploads.log'
|
|
|
binding._getUploadedReports log
|
|
|
|
|
|
-
|
|
|
crashRepoter = new CrashReporter
|
|
|
module.exports = crashRepoter
|