mirror of
https://github.com/open-webui/open-webui
synced 2024-12-28 06:42:47 +00:00
refac
This commit is contained in:
parent
cd7eff3bdb
commit
4442411f40
@ -92,7 +92,9 @@
|
||||
};
|
||||
|
||||
const chatEventHandler = async (event) => {
|
||||
if (event.chat_id !== $chatId || document.visibilityState !== 'visible') {
|
||||
const chat = $page.url.pathname.includes(`/c/${event.chat_id}`);
|
||||
|
||||
if (!chat || document.visibilityState !== 'visible') {
|
||||
await tick();
|
||||
const type = event?.data?.type ?? null;
|
||||
const data = event?.data?.data ?? null;
|
||||
|
Loading…
Reference in New Issue
Block a user