Skip to content

Commit

Permalink
Fix homesections in legacy browser
Browse files Browse the repository at this point in the history
(cherry picked from commit d3e3bc7)
  • Loading branch information
dmitrylyzo committed Sep 24, 2023
1 parent 286bbcb commit 5bb83fd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/components/homesections/homesections.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,14 @@ export function loadSections(elem, apiClient, user, userSettings) {
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?.IsAdministrator) {
Expand Down

0 comments on commit 5bb83fd

Please sign in to comment.