auto updater win is an EventEmitter already
This commit is contained in:
parent
a8469fc79d
commit
62882fe49e
1 changed files with 3 additions and 5 deletions
|
@ -3,11 +3,9 @@ switch process.platform
|
|||
autoUpdater = require('./auto-updater/auto-updater-win')
|
||||
else
|
||||
# take the default binding for the current platform
|
||||
autoUpdater = process.atomBinding('auto_updater').autoUpdater
|
||||
|
||||
EventEmitter = require('events').EventEmitter
|
||||
|
||||
autoUpdater.__proto__ = EventEmitter.prototype
|
||||
autoUpdater = process.atomBinding('auto_updater').autoUpdater
|
||||
EventEmitter = require('events').EventEmitter
|
||||
autoUpdater.__proto__ = EventEmitter.prototype
|
||||
|
||||
autoUpdater.on 'update-downloaded-raw', (args...) ->
|
||||
args[3] = new Date(args[3]) # releaseDate
|
||||
|
|
Loading…
Reference in a new issue