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

Fix homesections in legacy browser

This commit is contained in:
Dmitry Lyzo 2023-09-18 02:14:51 +03:00
parent 9e871d43ec
commit d3e3bc7282

View file

@ -72,11 +72,14 @@ import ServerConnections from '../ServerConnections';
promises.push(loadSection(elem, apiClient, user, userSettings, userViews, sections, i));
}
return Promise.all(promises).then(function () {
return resume(elem, {
refresh: true
return Promise.all(promises)
// Timeout for polyfilled CustomElements (webOS 1.2)
.then(() => new Promise((resolve) => setTimeout(resolve, 0)))
.then(() => {
return resume(elem, {
refresh: true
});
});
});
} else {
let noLibDescription;
if (user['Policy'] && user['Policy']['IsAdministrator']) {