From a2f3cd5836a75f72bb244e92ba277f53e573c1bd Mon Sep 17 00:00:00 2001 From: ThinkStu <91378285+Bistutu@users.noreply.github.com> Date: Sat, 17 Feb 2024 23:10:06 +0800 Subject: [PATCH] =?UTF-8?q?opti:=20=E8=B0=83=E4=BD=8E=E9=BC=A0=E6=A0=87?= =?UTF-8?q?=E6=82=AC=E6=B5=AE=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FluentRead.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FluentRead.js b/FluentRead.js index f144f83..01b0f5d 100644 --- a/FluentRead.js +++ b/FluentRead.js @@ -594,7 +594,7 @@ const settingManager = { mouseX = event.clientX; mouseY = event.clientY; - handler(mouseX, mouseY, 150); + handler(mouseX, mouseY, 50); }); // 检查是否需要拉取数据 @@ -763,7 +763,7 @@ const chatMgs = { function translate(node) { let model = util.getValue('model') - if (!node.innerText) return; // 如果没有文本,则跳过 + if (!node.innerText.trim()) return; // 空文本,跳过 // 检测语言类型,如果是中文则不翻译 baiduDetectLang(node.innerText).then(lang => {