From d994c849019f4b4def234f2e3b1a9e9b5a2a598b Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sun, 24 Feb 2019 10:50:45 +0900 Subject: [PATCH] Resolve audioTag undefined error (#4363) --- src/client/app/common/views/components/media-banner.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/app/common/views/components/media-banner.vue b/src/client/app/common/views/components/media-banner.vue index 3dec2e428..4e459ad66 100644 --- a/src/client/app/common/views/components/media-banner.vue +++ b/src/client/app/common/views/components/media-banner.vue @@ -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() {