refactor: ginify DownloadItem (#22924)

This commit is contained in:
Jeremy Apthorp
2020-04-02 17:22:46 -07:00
committed by GitHub
parent 6159066c26
commit 0a78ab4b98
9 changed files with 153 additions and 101 deletions

View File

@@ -138,7 +138,3 @@ for (const name of events) {
// Deprecate allowRendererProcessReuse but only if they set it to false, no need to log if
// they are setting it to true
deprecate.removeProperty(app, 'allowRendererProcessReuse', [false]);
// Wrappers for native classes.
const { DownloadItem } = process.electronBinding('download_item');
Object.setPrototypeOf(DownloadItem.prototype, EventEmitter.prototype);