Skip to content

Commit

Permalink
Merge pull request #4787 from dmitrylyzo/fix-legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaboniface authored Sep 24, 2023
2 parents 8d1c34f + d3e3bc7 commit 1e1af1c
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 @@ -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']) {
Expand Down

0 comments on commit 1e1af1c

Please sign in to comment.