Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix console error

Chocobozzz1d90e39df3af
diff --git a/client/src/assets/player/shared/peertube/peertube-plugin.ts b/client/src/assets/player/shared/peertube/peertube-plugin.ts
index da9b3bd0ea..cf96b33bad 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 }