From 6d188b59d209ef7e8cc24ab71c4a1b5b7e2e09d0 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sat, 1 Feb 2025 05:53:02 +0000 Subject: [PATCH] Fix cancellation --- .../RecipePageParts/RecipePageInstructionPlayer.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructionPlayer.vue b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructionPlayer.vue index 380bc7856..253f70cc7 100644 --- a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructionPlayer.vue +++ b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructionPlayer.vue @@ -78,9 +78,7 @@ export default defineComponent({ }, play() { const self = this; - if (this.utterance && this.playing) { - speechSynthesis.cancel(); - } + speechSynthesis.cancel(); const utterance = new SpeechSynthesisUtterance(this.step.text); utterance.onstart = (event) => {