refactor: ginify autoUpdater (#24678)
This commit is contained in:
parent
e6cf5906f6
commit
38fafe4986
6 changed files with 68 additions and 55 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue