From 38a7d48eac54496afebd93183851c1bc42428a82 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 28 Jun 2022 18:41:52 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E9=9A=90=E8=97=8F=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=A0=8F=E6=97=B6=E4=B8=8D=E5=86=8D=E8=BF=9B=E8=A1=8C=E5=AD=97?= =?UTF-8?q?=E6=95=B0=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/layout/status.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/layout/status.ts b/app/src/layout/status.ts index 9faadd7d6..c15bb7d52 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) {