electron/lib/browser/api/auto-updater/auto-updater-native.js

9 lines
291 B
JavaScript
Raw Normal View History

const EventEmitter = require('events').EventEmitter
2018-09-13 16:10:51 +00:00
const { autoUpdater, AutoUpdater } = process.atomBinding('auto_updater')
2016-01-12 02:40:23 +00:00
// AutoUpdater is an EventEmitter.
2016-08-02 11:38:35 +00:00
Object.setPrototypeOf(AutoUpdater.prototype, EventEmitter.prototype)
EventEmitter.call(autoUpdater)
2016-01-12 02:40:23 +00:00
module.exports = autoUpdater