asarfuckery/electronasar/canary/browser/api/auto-updater/auto-updater-native.js

11 lines
305 B
JavaScript
Raw Normal View History

2019-06-20 21:19:08 +00:00
'use strict'
const EventEmitter = require('events').EventEmitter
const { autoUpdater, AutoUpdater } = process.atomBinding('auto_updater')
2019-06-16 20:19:06 +00:00
// AutoUpdater is an EventEmitter.
2019-06-20 21:19:08 +00:00
Object.setPrototypeOf(AutoUpdater.prototype, EventEmitter.prototype)
EventEmitter.call(autoUpdater)
module.exports = autoUpdater