2020-07-01 19:27:12 +00:00
|
|
|
import { EventEmitter } from 'events';
|
2020-06-23 03:32:45 +00:00
|
|
|
const { autoUpdater, AutoUpdater } = process._linkedBinding('electron_browser_auto_updater');
|
2016-01-12 02:40:23 +00:00
|
|
|
|
2017-11-02 04:05:27 +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-07-01 19:27:12 +00:00
|
|
|
export default autoUpdater;
|