prettier code

master
Aevann 2023-08-08 20:15:35 +03:00
parent 412489f3ad
commit 9e835fcece
1 changed files with 4 additions and 4 deletions

View File

@ -238,12 +238,12 @@ addEventListener('focus', function(){
ta.addEventListener("input", function() {
text = ta.value
if (!text && is_typing==true){
is_typing=false;
if (!text && is_typing){
is_typing = false;
socket.emit('typing', false);
}
else if (text && is_typing==false) {
is_typing=true;
else if (text && !is_typing) {
is_typing = true;
socket.emit('typing', true);
}
})