mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-23 23:05:21 -07:00
Apply suggestions from code review
This commit is contained in:
parent
13275a8155
commit
8081293fe4
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
nextIndex() {
|
nextIndex() {
|
||||||
// TODO: i18n stopwords in sync with the browser's implementation? Assumes . and ! are boundaries, may not be true for all languages.
|
// TODO: i18n stopwords in sync with the browser's implementation? Assumes . and ! are boundaries, may not be true for all languages.
|
||||||
const match = this.step.text.slice(this.currentIndex).search(/[\.\!]/)
|
const match = this.step.text.slice(this.currentIndex).search(/[.!]/)
|
||||||
if (match === -1) {
|
if (match === -1) {
|
||||||
return this.currentIndex;
|
return this.currentIndex;
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ export default defineComponent({
|
||||||
// console.log(event)
|
// console.log(event)
|
||||||
// };
|
// };
|
||||||
utterance.onerror = (event) => {
|
utterance.onerror = (event) => {
|
||||||
if (event.error == "interrupted") {
|
if (event.error === "interrupted") {
|
||||||
this.playing = false;
|
this.playing = false;
|
||||||
this.played = false;
|
this.played = false;
|
||||||
this.paused = false;
|
this.paused = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue