add const and other small edits
This commit is contained in:
parent
7b08a93549
commit
93df164485
7 changed files with 24 additions and 18 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue