mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-24 15:25:23 -07:00
Fix cancellation
This commit is contained in:
parent
c607c6c033
commit
6d188b59d2
1 changed files with 1 additions and 3 deletions
|
@ -78,9 +78,7 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
play() {
|
play() {
|
||||||
const self = this;
|
const self = this;
|
||||||
if (this.utterance && this.playing) {
|
|
||||||
speechSynthesis.cancel();
|
speechSynthesis.cancel();
|
||||||
}
|
|
||||||
|
|
||||||
const utterance = new SpeechSynthesisUtterance(this.step.text);
|
const utterance = new SpeechSynthesisUtterance(this.step.text);
|
||||||
utterance.onstart = (event) => {
|
utterance.onstart = (event) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue