remove crashReporter deprecation
This commit is contained in:
parent
438ac61ff7
commit
cc30f4c4fd
2 changed files with 2 additions and 24 deletions
|
@ -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`
|
## `nativeImage`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
|
@ -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, deprecate} = process.type === 'browser' ? electron : electron.remote
|
const {app} = process.type === 'browser' ? electron : electron.remote
|
||||||
const binding = process.atomBinding('crash_reporter')
|
const binding = process.atomBinding('crash_reporter')
|
||||||
|
|
||||||
class CrashReporter {
|
class CrashReporter {
|
||||||
|
@ -21,12 +21,7 @@ class CrashReporter {
|
||||||
} = options
|
} = options
|
||||||
|
|
||||||
if (uploadToServer == null) {
|
if (uploadToServer == null) {
|
||||||
if (options.autoSubmit) {
|
uploadToServer = true
|
||||||
deprecate.warn('autoSubmit', 'uploadToServer')
|
|
||||||
uploadToServer = options.autoSubmit
|
|
||||||
} else {
|
|
||||||
uploadToServer = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ignoreSystemCrashHandler == null) ignoreSystemCrashHandler = false
|
if (ignoreSystemCrashHandler == null) ignoreSystemCrashHandler = false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue