This commit is contained in:
Timothy Jaeryang Baek committed 2026-11-10 23:38:21 +09:00
1 parent c647f3f42e
commit 0ebfed71f2
1 file changed
+1 -1
+1 -1
View File
@@ -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();