diff options
Diffstat (limited to 'src/client/components')
| -rw-r--r-- | src/client/components/timeline.vue | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/components/timeline.vue b/src/client/components/timeline.vue index 6befd7c2a7..234ed6b07c 100644 --- a/src/client/components/timeline.vue +++ b/src/client/components/timeline.vue @@ -53,11 +53,7 @@ export default Vue.extend({ (this.$refs.tl as any).prepend(note); if (this.sound) { - const audio = new Audio(note.userId === this.$store.state.i.id - ? `/assets/sounds/${this.$store.state.device.sfxNoteMy}.mp3` - : `/assets/sounds/${this.$store.state.device.sfxNote}.mp3`); - audio.volume = this.$store.state.device.sfxVolume; - audio.play(); + this.$root.sound(note.userId === this.$store.state.i.id ? 'noteMy' : 'note'); } }; |