Skip to content

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

:zap: 隐藏状态栏时不再进行字数统计

Vanessa38a7d48eac54
diff --git a/app/src/layout/status.ts b/app/src/layout/status.ts
index 9faadd7d6f..c15bb7d526 100644
--- a/app/src/layout/status.ts
+++ b/app/src/layout/status.ts
@@ -127,7 +127,7 @@ export const initStatus = () => {
};
export const countSelectWord = (range: Range) => {
- if (isMobile()) {
+ if (isMobile() || document.getElementById("status").classList.contains("fn__none")) {
return;
}
const selectText = range.toString();
@@ -145,7 +145,7 @@ export const countSelectWord = (range: Range) => {
};
export const countBlockWord = (ids: string[]) => {
- if (isMobile()) {
+ if (isMobile() || document.getElementById("status").classList.contains("fn__none")) {
return;
}
if (ids.length > 0) {