move audio to fit github host
This commit is contained in:
parent
b28563f783
commit
f06ede188c
@ -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>
|
BIN
nuxt/static/sounds/Three Chain Links - Die Historic.mp3
Normal file
BIN
nuxt/static/sounds/Three Chain Links - Die Historic.mp3
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user