From 29ed0492063bbf01e8348efbc82c93071aee0b54 Mon Sep 17 00:00:00 2001 From: Prajith Kesava Prasad <54884015+pkesavap@users.noreply.github.com> Date: Mon, 5 Oct 2020 21:39:27 +0530 Subject: [PATCH] Update chat.js --- public/js/chat.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/js/chat.js b/public/js/chat.js index 73f5af0..4f2ea03 100644 --- a/public/js/chat.js +++ b/public/js/chat.js @@ -768,9 +768,8 @@ chatInput.addEventListener("keypress", function (event) { if (isEmptyOrSpaces(msg) == false) { dataChanel.send("mes:" + msg); addMessageToScreen(msg, true); - - } // Add message to screen + } // Auto scroll chat down chatZone.scrollTop(chatZone[0].scrollHeight); // Clear chat input