mirror of
https://github.com/electron/electron.git
synced 2026-01-29 09:18:18 -05:00
auto updater win is an EventEmitter already
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user