8 lines
300 B
TypeScript
8 lines
300 B
TypeScript
import { EventEmitter } from 'events';
|
|
const { autoUpdater, AutoUpdater } = process._linkedBinding('electron_browser_auto_updater');
|
|
|
|
// AutoUpdater is an EventEmitter.
|
|
Object.setPrototypeOf(AutoUpdater.prototype, EventEmitter.prototype);
|
|
EventEmitter.call(autoUpdater);
|
|
|
|
export default autoUpdater;
|