mirror of
https://github.com/ianramzy/decentralized-video-chat.git
synced 2024-11-17 15:49:20 +08:00
Update chat.js
This commit is contained in:
parent
073d15070b
commit
29ed049206
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user