asarfuckery/electronasar/canary/browser/api/auto-updater/auto-updater-native.js
2019-02-06 21:27:58 +01:00

10 lines
305 B
JavaScript

'use strict'
const EventEmitter = require('events').EventEmitter
const { autoUpdater, AutoUpdater } = process.atomBinding('auto_updater')
// AutoUpdater is an EventEmitter.
Object.setPrototypeOf(AutoUpdater.prototype, EventEmitter.prototype)
EventEmitter.call(autoUpdater)
module.exports = autoUpdater