summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-20 06:08:49 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-20 06:08:49 +0900
commitb8e7df198d5eabbf8c0d82f4aee86a38168d8d71 (patch)
tree922f2872df0da14557bb0af1b04ceeb99255c2e0 /src/client/components
parent12.17.0 (diff)
downloadmisskey-b8e7df198d5eabbf8c0d82f4aee86a38168d8d71.tar.gz
misskey-b8e7df198d5eabbf8c0d82f4aee86a38168d8d71.tar.bz2
misskey-b8e7df198d5eabbf8c0d82f4aee86a38168d8d71.zip
Improve sound
Diffstat (limited to 'src/client/components')
-rw-r--r--src/client/components/timeline.vue6
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');
}
};