Skip to content

Commit

Permalink
Fix homesections in legacy browser
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrylyzo committed Sep 23, 2023
1 parent 9e871d4 commit d3e3bc7
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 d3e3bc7

Please sign in to comment.