Use Object.entries() when calling file info callbacks
This commit is contained in:
parent
0b9980f371
commit
88d4c49d9a
1 changed files with 3 additions and 3 deletions
|
@ -477,9 +477,9 @@ lbry._updateClaimOwnershipCache = function(claimId) {
|
|||
|
||||
lbry._updateSubscribedFileInfo = function(sdHash) {
|
||||
const callSubscribedCallbacks = (sdHash, fileInfo) => {
|
||||
Object.keys(this._fileInfoSubscribeCallbacks[sdHash]).forEach((subscribeId) => {
|
||||
this._fileInfoSubscribeCallbacks[sdHash][subscribeId](fileInfo);
|
||||
});
|
||||
for (let [subscribeId, callback] of Object.entries(this._fileInfoSubscribeCallbacks[sdHash])) {
|
||||
callback(fileInfo);
|
||||
}
|
||||
}
|
||||
|
||||
if (lbry._removedFiles.includes(sdHash)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue