forked from rDrama/rDrama
fsd
parent
ed58c7075f
commit
598508a972
|
@ -143,11 +143,15 @@
|
||||||
|
|
||||||
|
|
||||||
function send() {
|
function send() {
|
||||||
socket.emit('speak', textbox.value);
|
text = textbox.value.trim()
|
||||||
|
if (text)
|
||||||
|
{
|
||||||
|
socket.emit('speak', text);
|
||||||
textbox.value = ''
|
textbox.value = ''
|
||||||
is_typing = false
|
is_typing = false
|
||||||
socket.emit('typing', false);
|
socket.emit('typing', false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
textbox.addEventListener("keyup", function(e) {
|
textbox.addEventListener("keyup", function(e) {
|
||||||
|
|
Loading…
Reference in New Issue