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