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

11 lines
305 B
JavaScript
Raw Normal View History

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