diff --git a/www/assets/js/callbacks.js b/www/assets/js/callbacks.js index 45b489ff..47a0ebf6 100644 --- a/www/assets/js/callbacks.js +++ b/www/assets/js/callbacks.js @@ -222,7 +222,7 @@ function initCallbacks() { socket.on('userLeave', function(data) { var users = $('#userlist').children(); for(var i = 0; i < users.length; i++) { - var name = users[i].children[1].innerText; + var name = users[i].children[1].innerHTML; if(name == data.name) { $('#userlist')[0].removeChild(users[i]); }