ボリュームを0にしてもサウンドが鳴っていることになっていたのを修正 (#6098)

* Update init.ts

* parseFloat
This commit is contained in:
tamaina 2020-02-27 16:32:10 +09:00 committed by GitHub
parent 484dc9b08a
commit d3fd0f810a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: {