deprecate autoSubmit in favor of uploadToServer (#11992)
This commit is contained in:
parent
193febd18c
commit
772a69e24a
1 changed files with 10 additions and 2 deletions
|
@ -4,7 +4,7 @@ const {spawn} = require('child_process')
|
||||||
const os = require('os')
|
const os = require('os')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const electron = require('electron')
|
const electron = require('electron')
|
||||||
const {app} = process.type === 'browser' ? electron : electron.remote
|
const {app, deprecate} = process.type === 'browser' ? electron : electron.remote
|
||||||
const binding = process.atomBinding('crash_reporter')
|
const binding = process.atomBinding('crash_reporter')
|
||||||
|
|
||||||
class CrashReporter {
|
class CrashReporter {
|
||||||
|
@ -20,7 +20,15 @@ class CrashReporter {
|
||||||
uploadToServer
|
uploadToServer
|
||||||
} = options
|
} = options
|
||||||
|
|
||||||
if (uploadToServer == null) uploadToServer = true
|
if (uploadToServer == null) {
|
||||||
|
if (options.autoSubmit) {
|
||||||
|
deprecate.warn('autoSubmit', 'uploadToServer')
|
||||||
|
uploadToServer = options.autoSubmit
|
||||||
|
} else {
|
||||||
|
uploadToServer = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (ignoreSystemCrashHandler == null) ignoreSystemCrashHandler = false
|
if (ignoreSystemCrashHandler == null) ignoreSystemCrashHandler = false
|
||||||
if (extra == null) extra = {}
|
if (extra == null) extra = {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue