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

9 lines
300 B
TypeScript
Raw Normal View History

2020-07-01 12:27:12 -07:00
import { EventEmitter } from 'events';
const { autoUpdater, AutoUpdater } = process._linkedBinding('electron_browser_auto_updater');
2016-01-11 18:40:23 -08:00
// AutoUpdater is an EventEmitter.
2020-03-20 13:28:31 -07:00
Object.setPrototypeOf(AutoUpdater.prototype, EventEmitter.prototype);
EventEmitter.call(autoUpdater);
2016-01-11 18:40:23 -08:00
2020-07-01 12:27:12 -07:00
export default autoUpdater;