From ff104cd6af69c1f9af26f7f14c78556410e5629f Mon Sep 17 00:00:00 2001 From: Hamza Ali Date: Wed, 25 Sep 2019 20:23:48 +0700 Subject: [PATCH] code/static: fix accidental duplication code of nickname button handler --- code/static/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);