mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 06:24:06 +01:00
⚡ 隐藏状态栏时不再进行字数统计
This commit is contained in:
parent
548f55e608
commit
38a7d48eac
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue