mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-06-30 22:31:09 +00:00
fix getMessages getting called multiple times in parallel
This commit is contained in:
parent
a4d062fa52
commit
5c84a2cbf8
@ -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…
x
Reference in New Issue
Block a user