Require download_items inline
This commit is contained in:
parent
e5036c0988
commit
b1275420a3
1 changed files with 1 additions and 2 deletions
|
@ -4,7 +4,6 @@ const {Menu} = require('electron')
|
|||
const {EventEmitter} = require('events')
|
||||
|
||||
const bindings = process.atomBinding('app')
|
||||
const downloadItemBindings = process.atomBinding('download_item')
|
||||
const {app} = bindings
|
||||
|
||||
Object.setPrototypeOf(app, EventEmitter.prototype)
|
||||
|
@ -51,7 +50,7 @@ for (let name of events) {
|
|||
}
|
||||
|
||||
// Wrappers for native classes.
|
||||
downloadItemBindings._setWrapDownloadItem((downloadItem) => {
|
||||
process.atomBinding('download_item')._setWrapDownloadItem((downloadItem) => {
|
||||
// downloadItem is an EventEmitter.
|
||||
Object.setPrototypeOf(downloadItem, EventEmitter.prototype)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue