electron/lib/browser/api/auto-updater/auto-updater-native.js
2020-03-20 13:28:31 -07:00

10 lines
315 B
JavaScript

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