aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player')
-rw-r--r--client/src/assets/player/peertube-videojs-plugin.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts
index fe9fc1a69..b62dcb829 100644
--- a/client/src/assets/player/peertube-videojs-plugin.ts
+++ b/client/src/assets/player/peertube-videojs-plugin.ts
@@ -502,6 +502,8 @@ class PeerTubePlugin extends Plugin {
502 } 502 }
503 503
504 private addViewToVideo () { 504 private addViewToVideo () {
505 if (!this.videoViewUrl) return Promise.resolve(undefined)
506
505 return fetch(this.videoViewUrl, { method: 'POST' }) 507 return fetch(this.videoViewUrl, { method: 'POST' })
506 } 508 }
507 509