diff --git a/docs/tutorial/planned-breaking-changes.md b/docs/tutorial/planned-breaking-changes.md index ffe4c8d30033..ac13bf0841eb 100644 --- a/docs/tutorial/planned-breaking-changes.md +++ b/docs/tutorial/planned-breaking-changes.md @@ -29,23 +29,6 @@ window.on('app-command', (e, cmd) => { }) ``` -## `crashReporter` - -```js -// Deprecated -crashReporter.start({ - companyName: 'Crashly', - submitURL: 'https://crash.server.com', - autoSubmit: true -}) -// Replace with -crashReporter.start({ - companyName: 'Crashly', - submitURL: 'https://crash.server.com', - uploadToServer: true -}) -``` - ## `nativeImage` ```js diff --git a/lib/common/api/crash-reporter.js b/lib/common/api/crash-reporter.js index 1b20fa52aab7..1090d425e4c5 100644 --- a/lib/common/api/crash-reporter.js +++ b/lib/common/api/crash-reporter.js @@ -4,7 +4,7 @@ const {spawn} = require('child_process') const os = require('os') const path = require('path') const electron = require('electron') -const {app, deprecate} = process.type === 'browser' ? electron : electron.remote +const {app} = process.type === 'browser' ? electron : electron.remote const binding = process.atomBinding('crash_reporter') class CrashReporter { @@ -21,12 +21,7 @@ class CrashReporter { } = options if (uploadToServer == null) { - if (options.autoSubmit) { - deprecate.warn('autoSubmit', 'uploadToServer') - uploadToServer = options.autoSubmit - } else { - uploadToServer = true - } + uploadToServer = true } if (ignoreSystemCrashHandler == null) ignoreSystemCrashHandler = false