mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
cd7eff3bdb
commit
4442411f40
1 changed files with 3 additions and 1 deletions
|
|
@ -92,7 +92,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const chatEventHandler = async (event) => {
|
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();
|
await tick();
|
||||||
const type = event?.data?.type ?? null;
|
const type = event?.data?.type ?? null;
|
||||||
const data = event?.data?.data ?? null;
|
const data = event?.data?.data ?? null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue