Add AutoUpdateManager.prototype.onUpdateError

This commit is contained in:
Antonio Scandurra
2016-03-30 15:05:57 +02:00
parent 80fc98a6ca
commit 2d5e697016
4 changed files with 26 additions and 0 deletions

View File

@@ -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
}