Skip to content

Commit

Permalink
Fixed admin notifications request being queued too often
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveb-p committed Mar 21, 2023
1 parent c7e78a6 commit f21468c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@

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

getNotificationsStatus();
(function loop() {
const loop = function loop() {
global.setTimeout(() => {
getNotificationsStatus().then(() => loop());
}, INTERVAL)
})()
}
getNotificationsStatus().then(() => loop());
})(window, window.document, window.ibexa, window.Translator);

0 comments on commit f21468c

Please sign in to comment.