mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
trim chat input start
This commit is contained in:
parent
e592f6eac8
commit
1b85958bcc
1 changed files with 2 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue