move audio to fit github host

This commit is contained in:
WieErWill 2021-07-06 11:37:19 +02:00
parent b28563f783
commit f06ede188c
2 changed files with 4 additions and 4 deletions

View File

@ -282,7 +282,7 @@
</template>
<script>
import zap from "@/assets/sounds/Three Chain Links - Die Historic.mp3";
//import zap from "@/assets/sounds/Three Chain Links - Die Historic.mp3";
export default {
data() {
@ -293,12 +293,12 @@ export default {
},
mounted() {
this.$store.commit("initializeSound");
this.audio = new Audio(zap);
this.audio = new Audio("/sounds/Three Chain Links - Die Historic.mp3");
},
methods: {
toggleSound() {
this.$store.commit("toggleSound");
if(!this.isSoundEnabled){
if (!this.isSoundEnabled) {
this.isSoundPlaying = false;
this.audio.pause();
}
@ -320,4 +320,4 @@ export default {
},
},
};
</script>
</script>