diff --git a/code/static/js/index.js b/code/static/js/index.js index 32d7a6e..a2484c3 100644 --- a/code/static/js/index.js +++ b/code/static/js/index.js @@ -138,7 +138,7 @@ chatI.onkeydown = function(ev) { ws.send(chatI.value); chatI.value = ""; } -nickB.onclick = function() { +chatB.onclick = function() { if(chatI.value.trim().length == 0) return; ws.send(chatI.value);