Fix issues and deprecate the old prop

This commit is contained in:
Samuel Attard 2016-11-08 11:18:49 +11:00 committed by Kevin Sawicki
parent 0b9530efd7
commit 0d1804b2a0
2 changed files with 6 additions and 2 deletions

View file

@ -18,6 +18,10 @@ class CrashReporter {
if (autoSubmit == null && shouldUpload == null) {
shouldUpload = true
} else {
if (typeof autoSubmit !== 'undefined') {
// TODO: Remove depreceated property in 2.0.0
console.warn('The "autoSubmit" attribute on electron.crashReporter is depreceated. Please use "shouldUpload" instead.')
}
shouldUpload = shouldUpload || autoSubmit
}
if (ignoreSystemCrashHandler == null) {