ボリュームを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

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