Skip to content

Commit

Permalink
fix auto reader time oout
Browse files Browse the repository at this point in the history
  • Loading branch information
ttop32 committed Nov 22, 2024
1 parent ed331ca commit 0ce1345
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/contentScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 0ce1345

Please sign in to comment.