diff options
author | Chocobozzz <me@florianbigard.com> | 2023-03-21 08:19:31 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-03-21 08:19:31 +0100 |
commit | 1d90e39df3afbdcd7002aab11223a8e3daede214 (patch) | |
tree | d02e05eee8b56160caf411c3ec164c2688934883 /client/src/assets | |
parent | 8b197aca90655f8f2b4111d4edf18fc70860b26b (diff) | |
download | PeerTube-1d90e39df3afbdcd7002aab11223a8e3daede214.tar.gz PeerTube-1d90e39df3afbdcd7002aab11223a8e3daede214.tar.zst PeerTube-1d90e39df3afbdcd7002aab11223a8e3daede214.zip |
Fix console error
Diffstat (limited to 'client/src/assets')
-rw-r--r-- | client/src/assets/player/shared/peertube/peertube-plugin.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
216 | saveVideoWatchHistory(this.videoUUID, currentTime) | 216 | saveVideoWatchHistory(this.videoUUID, currentTime) |
217 | } | 217 | } |
218 | 218 | ||
219 | if (!this.videoViewUrl) return | 219 | if (!this.videoViewUrl) return Promise.resolve(true) |
220 | 220 | ||
221 | const body: VideoView = { currentTime, viewEvent } | 221 | const body: VideoView = { currentTime, viewEvent } |
222 | 222 | ||