mirror of
https://github.com/ianramzy/decentralized-video-chat.git
synced 2024-11-23 10:39:20 +08:00
Updated with requested changes
proper positioning of doc
This commit is contained in:
parent
29ed049206
commit
2facf9723b
@ -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 = "";
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user