mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Remove deprecation warning for autoSubmit
This commit is contained in:
@@ -13,17 +13,17 @@ class CrashReporter {
|
||||
options = {}
|
||||
}
|
||||
this.productName = options.productName != null ? options.productName : app.getName()
|
||||
let {autoSubmit, companyName, extra, ignoreSystemCrashHandler, submitURL, uploadToServer} = options
|
||||
let {companyName, extra, ignoreSystemCrashHandler, submitURL, uploadToServer} = options
|
||||
|
||||
if (autoSubmit == null && uploadToServer == null) {
|
||||
uploadToServer = true
|
||||
} else {
|
||||
if (typeof autoSubmit !== 'undefined') {
|
||||
// TODO: Remove depreceated property in 2.0.0
|
||||
console.warn('The "autoSubmit" attribute on electron.crashReporter.start is depreceated. Please use "uploadToServer" instead.')
|
||||
}
|
||||
uploadToServer = uploadToServer || autoSubmit
|
||||
if (uploadToServer == null) {
|
||||
// TODO: Remove deprecated autoSubmit property in 2.0
|
||||
uploadToServer = options.autoSubmit
|
||||
}
|
||||
|
||||
if (uploadToServer == null) {
|
||||
uploadToServer = true
|
||||
}
|
||||
|
||||
if (ignoreSystemCrashHandler == null) {
|
||||
ignoreSystemCrashHandler = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user