Updated with requested changes

proper positioning of doc
This commit is contained in:
Prajith Kesava Prasad 2020-10-08 21:17:51 +05:30 committed by GitHub
parent 29ed049206
commit 2facf9723b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

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