mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-15 18:08:17 -07:00
Merge pull request #5925 from thornbill/home-resume-error
This commit is contained in:
commit
8f0fd26582
@ -131,9 +131,11 @@ export function resume(elem, options) {
|
||||
const elems = elem.querySelectorAll('.itemsContainer');
|
||||
const promises = [];
|
||||
|
||||
for (let i = 0, length = elems.length; i < length; i++) {
|
||||
promises.push(elems[i].resume(options));
|
||||
}
|
||||
Array.prototype.forEach.call(elems, section => {
|
||||
if (section.resume) {
|
||||
promises.push(section.resume(options));
|
||||
}
|
||||
});
|
||||
|
||||
return Promise.all(promises);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user