Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/4.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
tischsoic committed Mar 24, 2023
2 parents 1a5dc57 + ba7a27f commit 69eb128
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
});

fetch(request)
return fetch(request)
.then(getJsonFromResponse)
.then((notificationsInfo) => {
setPendingNotificationCount(notificationsInfo);
Expand Down Expand Up @@ -169,6 +169,11 @@

modal.querySelectorAll(SELECTOR_MODAL_RESULTS).forEach((link) => link.addEventListener('click', handleModalResultsClick, false));

getNotificationsStatus();
global.setInterval(getNotificationsStatus, INTERVAL);
const getNotificationsStatusLoop = () => {
getNotificationsStatus().finally(() => {
global.setTimeout(getNotificationsStatusLoop, INTERVAL);
});
};

getNotificationsStatusLoop();
})(window, window.document, window.ibexa, window.Translator);

0 comments on commit 69eb128

Please sign in to comment.