mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-23 14:10:42 -05:00
refac
This commit is contained in:
1 parent
c647f3f42e
commit
0ebfed71f2
1 file changed
+1
-1
@@ -998,7 +998,7 @@
|
||||
const link = (event.target as Element)?.closest<HTMLAnchorElement>('#sidebar a[href]');
|
||||
if (!link || link.target === '_blank' || link.hasAttribute('download')) return;
|
||||
if (link.closest('#sidebar-chat-item')?.querySelector('[role="checkbox"]')) return;
|
||||
if (link.pathname === '/' && !link.search) return;
|
||||
if (link.pathname.startsWith('/c/') || (link.pathname === '/' && !link.search)) return;
|
||||
if (openSidebarPage(link.href, link.getAttribute('aria-label') || link.textContent?.trim())) {
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
|
||||
Reference in new issue
Block a user