Improve sound

This commit is contained in:
syuilo 2020-02-20 06:08:49 +09:00
parent 34311e3181
commit b8e7df198d
10 changed files with 117 additions and 105 deletions

View file

@ -184,10 +184,7 @@ export default Vue.extend({
},
onMessage(message) {
//
const audio = new Audio(`/assets/sounds/${this.$store.state.device.sfxChat}.mp3`);
audio.volume = this.$store.state.device.sfxVolume;
audio.play();
this.$root.sound('chat');
const isBottom = this.isBottom();