This commit is contained in:
parent
4a6728eff2
commit
d86746bb0d
@ -21,7 +21,7 @@ const runChat = async () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (document.location.pathname === "/chat") {
|
if (document.location.pathname.startsWith("/chat")) {
|
||||||
runChat().then(() => setInterval(runChat, 5_000));
|
runChat().then(() => setInterval(runChat, 2_500));
|
||||||
}
|
}
|
||||||
}, 200);
|
}, 200);
|
||||||
|
Loading…
Reference in New Issue
Block a user