mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-05 05:29:27 +00:00
fix getMessages getting called multiple times in parallel
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user