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

This commit is contained in:
Vanessa 2022-06-28 18:41:52 +08:00
parent 548f55e608
commit 38a7d48eac

View file

@ -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) {