summaryrefslogtreecommitdiff
path: root/src/client/app/common
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-12 06:20:32 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-12 06:20:32 +0900
commit3ffae40085da560c894e0951ec848c412816fcb7 (patch)
tree70b01de284f4740a629e3cf8c979de49663c04b3 /src/client/app/common
parent:v: (diff)
downloadmisskey-3ffae40085da560c894e0951ec848c412816fcb7.tar.gz
misskey-3ffae40085da560c894e0951ec848c412816fcb7.tar.bz2
misskey-3ffae40085da560c894e0951ec848c412816fcb7.zip
サウンドのボリュームはデフォルトで50%に
Diffstat (limited to 'src/client/app/common')
-rw-r--r--src/client/app/common/views/components/messaging-room.vue2
-rw-r--r--src/client/app/common/views/components/othello.game.vue4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/client/app/common/views/components/messaging-room.vue b/src/client/app/common/views/components/messaging-room.vue
index d30c64d74a..e1b775c33a 100644
--- a/src/client/app/common/views/components/messaging-room.vue
+++ b/src/client/app/common/views/components/messaging-room.vue
@@ -151,7 +151,7 @@ export default Vue.extend({
// サウンドを再生する
if ((this as any).os.isEnableSounds) {
const sound = new Audio(`${url}/assets/message.mp3`);
- sound.volume = localStorage.getItem('soundVolume') ? parseInt(localStorage.getItem('soundVolume'), 10) / 100 : 1;
+ sound.volume = localStorage.getItem('soundVolume') ? parseInt(localStorage.getItem('soundVolume'), 10) / 100 : 0.5;
sound.play();
}
diff --git a/src/client/app/common/views/components/othello.game.vue b/src/client/app/common/views/components/othello.game.vue
index b9d946de96..8c646cce07 100644
--- a/src/client/app/common/views/components/othello.game.vue
+++ b/src/client/app/common/views/components/othello.game.vue
@@ -164,7 +164,7 @@ export default Vue.extend({
// サウンドを再生する
if ((this as any).os.isEnableSounds) {
const sound = new Audio(`${url}/assets/othello-put-me.mp3`);
- sound.volume = localStorage.getItem('soundVolume') ? parseInt(localStorage.getItem('soundVolume'), 10) / 100 : 1;
+ sound.volume = localStorage.getItem('soundVolume') ? parseInt(localStorage.getItem('soundVolume'), 10) / 100 : 0.5;
sound.play();
}
@@ -188,7 +188,7 @@ export default Vue.extend({
// サウンドを再生する
if ((this as any).os.isEnableSounds && x.color != this.myColor) {
const sound = new Audio(`${url}/assets/othello-put-you.mp3`);
- sound.volume = localStorage.getItem('soundVolume') ? parseInt(localStorage.getItem('soundVolume'), 10) / 100 : 1;
+ sound.volume = localStorage.getItem('soundVolume') ? parseInt(localStorage.getItem('soundVolume'), 10) / 100 : 0.5;
sound.play();
}
},