Skip to content

Commit

Permalink
dont narrate if muted
Browse files Browse the repository at this point in the history
  • Loading branch information
lunarcloud committed Oct 12, 2023
1 parent f16df96 commit bc4aa77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/home-console.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ export default class HomeConsolePageController {

narrate (text) {
speechSynthesis.cancel()
speechSynthesis.speak(new SpeechSynthesisUtterance(text))
if (!this.audioManager.muted)
speechSynthesis.speak(new SpeechSynthesisUtterance(text))
}
}

Expand Down

0 comments on commit bc4aa77

Please sign in to comment.