mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 05:39:12 +00:00
trim chat input start
This commit is contained in:
@@ -168,6 +168,8 @@
|
|||||||
|
|
||||||
function onChatInput() {
|
function onChatInput() {
|
||||||
let chatInput = document.getElementById("chat-input");
|
let chatInput = document.getElementById("chat-input");
|
||||||
|
chatInput.value = chatInput.value.trimStart();
|
||||||
|
|
||||||
if (chatInput.value.startsWith("/") && chatInput.value.split(" ").length === 1) {
|
if (chatInput.value.startsWith("/") && chatInput.value.split(" ").length === 1) {
|
||||||
let chatTooltip = document.getElementById("chat-tooltip");
|
let chatTooltip = document.getElementById("chat-tooltip");
|
||||||
chatTooltip.style.display = "block";
|
chatTooltip.style.display = "block";
|
||||||
|
|||||||
Reference in New Issue
Block a user