Skip to content

Commit

Permalink
Merge pull request #4800 from dmitrylyzo/fix-legacy-master
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill authored Sep 24, 2023
2 parents 274109d + 5bb83fd commit 25c4da3
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 25c4da3

Please sign in to comment.