mirror of
https://github.com/ianramzy/decentralized-video-chat.git
synced 2024-11-23 18:49:21 +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
|
// Send message over data channel
|
||||||
if (isEmptyOrSpaces(msg) == false) {
|
if (isEmptyOrSpaces(msg) == false) {
|
||||||
dataChanel.send("mes:" + msg);
|
dataChanel.send("mes:" + msg);
|
||||||
addMessageToScreen(msg, true);
|
|
||||||
// Add message to screen
|
// Add message to screen
|
||||||
|
addMessageToScreen(msg, true);
|
||||||
}
|
}
|
||||||
// Auto scroll chat down
|
// Auto scroll chat down
|
||||||
chatZone.scrollTop(chatZone[0].scrollHeight);
|
chatZone.scrollTop(chatZone[0].scrollHeight);
|
||||||
// Clear chat input
|
// Clear chat input
|
||||||
chatInput.value = "";
|
chatInput.value = "";
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user