diff --git a/components/app/AudioPlayer.vue b/components/app/AudioPlayer.vue index ec129319..9c4c8a85 100644 --- a/components/app/AudioPlayer.vue +++ b/components/app/AudioPlayer.vue @@ -581,8 +581,12 @@ export default { } const ptWidth = Math.round(percentDone * this.trackWidth) - this.$refs.playedTrack.style.width = ptWidth + 'px' - this.$refs.bufferedTrack.style.width = Math.round(bufferedPercent * this.trackWidth) + 'px' + if (this.$refs.playedTrack) { + this.$refs.playedTrack.style.width = ptWidth + 'px' + } + if (this.$refs.bufferedTrack) { + this.$refs.bufferedTrack.style.width = Math.round(bufferedPercent * this.trackWidth) + 'px' + } if (this.$refs.trackCursor) { this.$refs.trackCursor.style.left = ptWidth - 14 + 'px' diff --git a/components/modals/FullscreenModal.vue b/components/modals/FullscreenModal.vue index e02378e3..4eacc41f 100644 --- a/components/modals/FullscreenModal.vue +++ b/components/modals/FullscreenModal.vue @@ -1,5 +1,5 @@