2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-06-27 07:13:12 +00:00

Deadlock prevention

This commit is contained in:
2022-03-31 12:08:31 +03:00
parent fa76cf99a6
commit 0db7f6c1e4
7 changed files with 160 additions and 154 deletions

View File

@ -46,7 +46,7 @@
users.append(el);
if (!silent)
appendMessage({usr, msg: "joined the room", date: new Date()});
appendMessage(new Map([['usr', usr], ['msg', "joined the room"], ['date', new Date()]]));
}
function removeUser(usr){
@ -57,7 +57,7 @@
break;
}
appendMessage({usr, msg: "left the room", date: new Date()});
appendMessage(new Map([['usr', usr], ['msg', "left the room"], ['date', new Date()]]));
}
function updateTitle()