summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamaina <tamaina@hotmail.co.jp>2020-02-27 16:32:10 +0900
committerGitHub <noreply@github.com>2020-02-27 16:32:10 +0900
commitd3fd0f810a73df5a4a354413b8a8914eb1949ff4 (patch)
tree67cca866c9f1b4f1a409294220ed052b0e47e045
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
downloadsharkey-d3fd0f810a73df5a4a354413b8a8914eb1949ff4.tar.gz
sharkey-d3fd0f810a73df5a4a354413b8a8914eb1949ff4.tar.bz2
sharkey-d3fd0f810a73df5a4a354413b8a8914eb1949ff4.zip
ボリュームを0にしてもサウンドが鳴っていることになっていたのを修正 (#6098)
* Update init.ts * parseFloat
-rw-r--r--src/client/pages/preferences/index.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/pages/preferences/index.vue b/src/client/pages/preferences/index.vue
index f87f875107..eddf69653d 100644
--- a/src/client/pages/preferences/index.vue
+++ b/src/client/pages/preferences/index.vue
@@ -178,7 +178,7 @@ export default Vue.extend({
sfxVolume: {
get() { return this.$store.state.device.sfxVolume; },
- set(value) { this.$store.commit('device/set', { key: 'sfxVolume', value }); }
+ set(value) { this.$store.commit('device/set', { key: 'sfxVolume', value: parseFloat(value, 10) }); }
},
sfxNote: {