summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/js/components/chat.js4
1 files 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);