Skip to content

Commit

Permalink
small frontend refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tischsoic committed Mar 22, 2023
1 parent f21468c commit 0f3952f
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,11 @@

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

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

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

0 comments on commit 0f3952f

Please sign in to comment.