don't start sound auto
This commit is contained in:
parent
a501b37e57
commit
4d655b5113
@ -298,10 +298,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
toggleSound() {
|
toggleSound() {
|
||||||
this.$store.commit("toggleSound");
|
this.$store.commit("toggleSound");
|
||||||
if(this.isSoundEnabled){
|
if(!this.isSoundEnabled){
|
||||||
this.isSoundPlaying = true;
|
|
||||||
this.audio.play();
|
|
||||||
} else {
|
|
||||||
this.isSoundPlaying = false;
|
this.isSoundPlaying = false;
|
||||||
this.audio.pause();
|
this.audio.pause();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user