don't start sound auto

This commit is contained in:
WieErWill 2021-07-06 09:06:08 +02:00
parent a501b37e57
commit 4d655b5113

View File

@ -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();
} }