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

11 lines
315 B
JavaScript
Raw Normal View History

2020-03-20 20:28:31 +00:00
'use strict';
2020-03-20 20:28:31 +00:00
const EventEmitter = require('events').EventEmitter;
const { autoUpdater, AutoUpdater } = process.electronBinding('auto_updater');
2016-01-12 02:40:23 +00:00
// AutoUpdater is an EventEmitter.
2020-03-20 20:28:31 +00:00
Object.setPrototypeOf(AutoUpdater.prototype, EventEmitter.prototype);
EventEmitter.call(autoUpdater);
2016-01-12 02:40:23 +00:00
2020-03-20 20:28:31 +00:00
module.exports = autoUpdater;