From 0ce1345b5fde10fd4b843e4057182e2d6062dc20 Mon Sep 17 00:00:00 2001 From: ttop32 Date: Fri, 22 Nov 2024 23:23:18 +0900 Subject: [PATCH] fix auto reader time oout --- src/contentScript.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/contentScript.js b/src/contentScript.js index dea96ac3..1baca88d 100644 --- a/src/contentScript.js +++ b/src/contentScript.js @@ -189,7 +189,8 @@ async function stageTooltipText(text, actionType, range) { } //if use_tts is on or activation key is pressed, do tts if (isTtsOn) { - await util.requestKillAutoReaderTabs(true); + util.requestKillAutoReaderTabs(true); + await delay(50); util.requestTTS(text, sourceLang, targetText, targetLang, timestamp + 100); } }