refactor: ginify autoUpdater (#24678)

This commit is contained in:
Jeremy Rose 2020-07-28 11:04:34 -07:00 committed by GitHub
parent e6cf5906f6
commit 38fafe4986
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 68 additions and 55 deletions

View file

@ -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;