fix getMessages getting called multiple times in parallel

pull/697/head
Simon 1 month ago
parent a4d062fa52
commit 5c84a2cbf8
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

@ -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);
}

Loading…
Cancel
Save