Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/13436

Vanessa9c4abc00aa2f
diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.ts
index c156a016ea..2f8a35a7a7 100644
--- a/app/src/protyle/header/Background.ts
+++ b/app/src/protyle/header/Background.ts
@@ -415,11 +415,10 @@ export class Background {
});
this.element.addEventListener("mousedown", (event: MouseEvent) => {
- const target = event.target as HTMLElement;
if (protyle.disabled) {
return;
}
-
+ const target = event.target as HTMLElement;
// 记录是否初始点击在关闭按钮上
const isCloseBtn = !!target.closest(".b3-chip__close");