mirror of
https://github.com/atom/atom.git
synced 2026-02-14 16:45:14 -05:00
Add AutoUpdateManager.prototype.onUpdateError
This commit is contained in:
@@ -20,6 +20,9 @@ export default class AutoUpdateManager {
|
||||
}),
|
||||
applicationDelegate.onUpdateNotAvailable(() => {
|
||||
this.emitter.emit('update-not-available')
|
||||
}),
|
||||
applicationDelegate.onUpdateError((message) => {
|
||||
this.emitter.emit('update-error', message)
|
||||
})
|
||||
)
|
||||
}
|
||||
@@ -67,6 +70,10 @@ export default class AutoUpdateManager {
|
||||
return this.emitter.on('update-not-available', callback)
|
||||
}
|
||||
|
||||
onUpdateError (callback) {
|
||||
return this.emitter.on('update-error', callback)
|
||||
}
|
||||
|
||||
getPlatform () {
|
||||
return process.platform
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user