summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-20 03:14:17 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-20 03:14:17 +0900
commit880cea5a564268c3d2e6ed884d92827710fb2bb5 (patch)
tree6d737d4127fb1226ac4b8f147a8eb77c6277bd8f /src/client/components
parentサウンド設定など (diff)
downloadmisskey-880cea5a564268c3d2e6ed884d92827710fb2bb5.tar.gz
misskey-880cea5a564268c3d2e6ed884d92827710fb2bb5.tar.bz2
misskey-880cea5a564268c3d2e6ed884d92827710fb2bb5.zip
Better sfx
Diffstat (limited to 'src/client/components')
-rw-r--r--src/client/components/timeline.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/components/timeline.vue b/src/client/components/timeline.vue
index ba367bf23d..6befd7c2a7 100644
--- a/src/client/components/timeline.vue
+++ b/src/client/components/timeline.vue
@@ -53,7 +53,9 @@ export default Vue.extend({
(this.$refs.tl as any).prepend(note);
if (this.sound) {
- const audio = new Audio(`/assets/sounds/${this.$store.state.device.sfxNote}.mp3`);
+ 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();
}