Skip to content

Commit

Permalink
Resolve #12 add using get withoutSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
NataliaPlatova committed Sep 6, 2023
1 parent 93cc3e8 commit 62f7bd5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/OutputLine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,8 @@ export default class OutpuiLine extends Vue.with(Props) {
async say () {
this.isPlaying = true;
if (this.config.withoutSpace) {
if (!!this.text) {
await TTS.instance.playText(this.text);
}
}
else await TTS.instance.playCards(this.file, this.cards);
if (this.text) await TTS.instance.playText(this.text);
} else await TTS.instance.playCards(this.file, this.cards);
this.isPlaying = false;
}
Expand Down

0 comments on commit 62f7bd5

Please sign in to comment.