Update chat.js

This commit is contained in:
Prajith Kesava Prasad 2020-10-05 21:39:27 +05:30 committed by GitHub
parent 073d15070b
commit 29ed049206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -768,9 +768,8 @@ chatInput.addEventListener("keypress", function (event) {
if (isEmptyOrSpaces(msg) == false) { if (isEmptyOrSpaces(msg) == false) {
dataChanel.send("mes:" + msg); dataChanel.send("mes:" + msg);
addMessageToScreen(msg, true); addMessageToScreen(msg, true);
}
// Add message to screen // Add message to screen
}
// Auto scroll chat down // Auto scroll chat down
chatZone.scrollTop(chatZone[0].scrollHeight); chatZone.scrollTop(chatZone[0].scrollHeight);
// Clear chat input // Clear chat input