From 71f11ab03165d022a471087f48bfe1dfb8d4b17a Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Wed, 20 Jan 2021 21:30:18 +0530 Subject: [PATCH] fix npe --- src/components/WatchVideo.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index b190f04f..e92519c0 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -292,7 +292,8 @@ export default { }); this.player.on("volumechange", () => { - this.audioplayer.volume = this.player.volume(); + if (this.audioplayer) + this.audioplayer.volume = this.player.volume(); if (localStorage) localStorage.setItem( "volume",