1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-26 20:09:27 -05:00

Resolve audioTag undefined error ()

This commit is contained in:
MeiMei 2019-02-24 10:50:45 +09:00 committed by syuilo
parent febfb97bb4
commit d994c84901

View file

@ -44,7 +44,7 @@ export default Vue.extend({
},
mounted() {
const audioTag = this.$refs.audio as HTMLAudioElement;
audioTag.volume = this.$store.state.device.mediaVolume;
if (audioTag) audioTag.volume = this.$store.state.device.mediaVolume;
},
methods: {
volumechange() {