]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix console error
authorChocobozzz <me@florianbigard.com>
Tue, 21 Mar 2023 07:19:31 +0000 (08:19 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 21 Mar 2023 07:19:31 +0000 (08:19 +0100)
client/src/assets/player/shared/peertube/peertube-plugin.ts

index da9b3bd0ea2553b1be3c9a9864cfd672a0332a5d..cf96b33bad1dcb0e2d68fe39204deb71c59b048c 100644 (file)
@@ -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 }