Pass continueUpdate callback in the 'will-install-update' event.
This commit is contained in:
parent
a918cd6b4e
commit
f435ed8667
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue