v
This commit is contained in:
parent
c2c5aa01a4
commit
061e5df120
2 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue