From d3e3bc7282774144d71ef8c0ec6efb6f940ed929 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Mon, 18 Sep 2023 02:14:51 +0300 Subject: [PATCH] Fix homesections in legacy browser --- src/components/homesections/homesections.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/homesections/homesections.js b/src/components/homesections/homesections.js index 320dc94471d..cf58a37aea0 100644 --- a/src/components/homesections/homesections.js +++ b/src/components/homesections/homesections.js @@ -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']) {