mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: ginify autoUpdater (#24678)
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
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);
|
||||
const { autoUpdater } = process._linkedBinding('electron_browser_auto_updater');
|
||||
|
||||
export default autoUpdater;
|
||||
|
||||
Reference in New Issue
Block a user