fix getMessages getting called multiple times in parallel

This commit is contained in:
Simon
2024-04-05 15:03:44 +02:00
parent a4d062fa52
commit 5c84a2cbf8

View File

@@ -12,7 +12,7 @@ checkMessages();
// start to look for messages
function checkMessages() {
let notifications = document.getElementById('notifications');
if (notifications) {
if (notifications && notifications.childNodes.length === 0 ) {
let dataOrigin = notifications.getAttribute('data');
getMessages(dataOrigin);
}