finish standardizing crash reporter
This commit is contained in:
parent
f61010df96
commit
80f7c82f93
1 changed files with 3 additions and 4 deletions
|
@ -63,7 +63,7 @@ var CrashReporter = (function () {
|
||||||
binding.start(this.productName, companyName, submitURL, autoSubmit, ignoreSystemCrashHandler, extra)
|
binding.start(this.productName, companyName, submitURL, autoSubmit, ignoreSystemCrashHandler, extra)
|
||||||
}
|
}
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
args = ["--reporter-url=" + submitURL, "--application-name=" + this.productName, "--v=1"]
|
args = ['--reporter-url=' + submitURL, '--application-name=' + this.productName, '--v=1']
|
||||||
env = {
|
env = {
|
||||||
ATOM_SHELL_INTERNAL_CRASH_SERVICE: 1
|
ATOM_SHELL_INTERNAL_CRASH_SERVICE: 1
|
||||||
}
|
}
|
||||||
|
@ -88,12 +88,11 @@ var CrashReporter = (function () {
|
||||||
CrashReporter.prototype.getUploadedReports = function () {
|
CrashReporter.prototype.getUploadedReports = function () {
|
||||||
var log, tmpdir
|
var log, tmpdir
|
||||||
tmpdir = process.platform === 'win32' ? os.tmpdir() : '/tmp'
|
tmpdir = process.platform === 'win32' ? os.tmpdir() : '/tmp'
|
||||||
log = process.platform === 'darwin' ? path.join(tmpdir, this.productName + " Crashes") : path.join(tmpdir, this.productName + " Crashes", 'uploads.log')
|
log = process.platform === 'darwin' ? path.join(tmpdir, this.productName + ' Crashes') : path.join(tmpdir, this.productName + ' Crashes', 'uploads.log')
|
||||||
return binding._getUploadedReports(log)
|
return binding._getUploadedReports(log)
|
||||||
}
|
}
|
||||||
|
|
||||||
return CrashReporter
|
return CrashReporter
|
||||||
|
|
||||||
})()
|
})()
|
||||||
|
|
||||||
module.exports = new CrashReporter
|
module.exports = new CrashReporter()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue