mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-28 11:46:30 +08:00
Pass continueUpdate callback in the 'will-install-update' event.
This commit is contained in:
@@ -3,4 +3,8 @@ EventEmitter = require('events').EventEmitter
|
||||
|
||||
AutoUpdater::__proto__ = EventEmitter.prototype
|
||||
|
||||
module.exports = new AutoUpdater
|
||||
autoUpdater = new AutoUpdater
|
||||
autoUpdater.on 'will-install-update-raw', (event, version) ->
|
||||
@emit 'will-install-update', event, version, => @continueUpdate()
|
||||
|
||||
module.exports = autoUpdater
|
||||
|
||||
Reference in New Issue
Block a user