diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2025-01-03 02:12:41 -0800 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2025-01-03 02:28:41 -0800 |
commit | d86746bb0ddcb7dcfc6225f9fe37f6034c958913 (patch) | |
tree | 56f2800f947c714e0a74420f9cf6927531c286a4 | |
parent | 4a6728eff2c2eff1eae6129b583cf87a515172eb (diff) | |
download | phoneof-d86746bb0ddcb7dcfc6225f9fe37f6034c958913.tar.gz phoneof-d86746bb0ddcb7dcfc6225f9fe37f6034c958913.zip |
fix chat path
-rw-r--r-- | static/js/components/chat.js | 4 |
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); |