add const and other small edits

This commit is contained in:
Shelley Vohr 2017-10-31 23:42:25 -04:00
parent 7b08a93549
commit 93df164485
No known key found for this signature in database
GPG key ID: F13993A75599653C
7 changed files with 24 additions and 18 deletions

View file

@ -20,7 +20,8 @@ class CrashReporter {
uploadToServer
} = options
if (uploadToServer == null) uploadToServer = options.autoSubmit || true
if (uploadToServer == null) uploadToServer = options.autoSubmit
if (uploadToServer == null) uploadToServer = true
if (ignoreSystemCrashHandler == null) ignoreSystemCrashHandler = false
if (extra == null) extra = {}
@ -36,7 +37,9 @@ class CrashReporter {
}
if (process.platform === 'win32') {
const env = { ELECTRON_INTERNAL_CRASH_SERVICE: 1 }
const env = {
ELECTRON_INTERNAL_CRASH_SERVICE: 1
}
const args = [
'--reporter-url=' + submitURL,
'--application-name=' + this.getProductName(),