From d86746bb0ddcb7dcfc6225f9fe37f6034c958913 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Fri, 3 Jan 2025 02:12:41 -0800 Subject: [PATCH] fix chat path --- static/js/components/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/components/chat.js b/static/js/components/chat.js index 8286a37..bdc8ad1 100644 --- a/static/js/components/chat.js +++ b/static/js/components/chat.js @@ -21,7 +21,7 @@ const runChat = async () => { }; setTimeout(() => { - if (document.location.pathname === "/chat") { - runChat().then(() => setInterval(runChat, 5_000)); + if (document.location.pathname.startsWith("/chat")) { + runChat().then(() => setInterval(runChat, 2_500)); } }, 200);