From: Chocobozzz Date: Tue, 21 Mar 2023 07:19:31 +0000 (+0100) Subject: Fix console error X-Git-Tag: v5.1.0~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=1d90e39df3afbdcd7002aab11223a8e3daede214;p=github%2FChocobozzz%2FPeerTube.git Fix console error --- diff --git a/client/src/assets/player/shared/peertube/peertube-plugin.ts b/client/src/assets/player/shared/peertube/peertube-plugin.ts index da9b3bd0e..cf96b33ba 100644 --- a/client/src/assets/player/shared/peertube/peertube-plugin.ts +++ b/client/src/assets/player/shared/peertube/peertube-plugin.ts @@ -216,7 +216,7 @@ class PeerTubePlugin extends Plugin { saveVideoWatchHistory(this.videoUUID, currentTime) } - if (!this.videoViewUrl) return + if (!this.videoViewUrl) return Promise.resolve(true) const body: VideoView = { currentTime, viewEvent }