1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge branch 'master' into master

This commit is contained in:
WooRim Jeon 2024-08-19 00:00:29 +09:00 committed by GitHub
commit c62ce4cf18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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