2018-09-22 12:28:50 +00:00
|
|
|
'use strict'
|
|
|
|
|
2016-03-24 20:15:04 +00:00
|
|
|
const EventEmitter = require('events').EventEmitter
|
2019-03-18 19:37:06 +00:00
|
|
|
const { autoUpdater, AutoUpdater } = process.electronBinding('auto_updater')
|
2016-01-12 02:40:23 +00:00
|
|
|
|
2017-11-02 04:05:27 +00:00
|
|
|
// AutoUpdater is an EventEmitter.
|
2016-08-02 11:38:35 +00:00
|
|
|
Object.setPrototypeOf(AutoUpdater.prototype, EventEmitter.prototype)
|
2017-11-02 04:05:27 +00:00
|
|
|
EventEmitter.call(autoUpdater)
|
2016-01-12 02:40:23 +00:00
|
|
|
|
2016-03-24 20:15:04 +00:00
|
|
|
module.exports = autoUpdater
|