This commit is contained in:
Aevann1 2022-03-24 23:44:55 +02:00
parent c2c5aa01a4
commit 061e5df120
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ socket.on('speak', function(json) {
let users = document.getElementsByClassName('userlink');
let last_user = users[users.length-1].innerHTML;
let scrolled_down = (box.scrollHeight - box.scrollTop <= window.innerHeight-109)
let scrolled_down = (box.scrollHeight - box.scrollTop <= window.innerHeight)
if (last_user == json['username']) {
document.getElementsByClassName('chat-line')[0].classList.remove('diff')