trim chat input start

This commit is contained in:
sabaimran 2023-08-28 19:18:10 -07:00
parent e592f6eac8
commit 1b85958bcc

View file

@ -168,6 +168,8 @@
function onChatInput() {
let chatInput = document.getElementById("chat-input");
chatInput.value = chatInput.value.trimStart();
if (chatInput.value.startsWith("/") && chatInput.value.split(" ").length === 1) {
let chatTooltip = document.getElementById("chat-tooltip");
chatTooltip.style.display = "block";