Skip to content
Snippets Groups Projects
Commit d994c849 authored by MeiMei's avatar MeiMei Committed by syuilo
Browse files

Resolve audioTag undefined error (#4363)

parent febfb97b
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment