aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-10 14:23:59 +0200
committerChocobozzz <me@florianbigard.com>2023-05-10 14:23:59 +0200
commit7815dc450ea9f8fd63e2234b6215013a132e6229 (patch)
treefaee269ef011930dd71d52035cdd2af8e6f2b004 /client/src
parentbc3bd960e3d240a1a02bbda7530659424ad70685 (diff)
downloadPeerTube-7815dc450ea9f8fd63e2234b6215013a132e6229.tar.gz
PeerTube-7815dc450ea9f8fd63e2234b6215013a132e6229.tar.zst
PeerTube-7815dc450ea9f8fd63e2234b6215013a132e6229.zip
Prevent invalid end watch section warnings
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/+login/login.component.ts2
-rw-r--r--client/src/app/shared/shared-share-modal/video-share.component.ts2
-rw-r--r--client/src/assets/player/shared/peertube/peertube-plugin.ts6
3 files changed, 4 insertions, 6 deletions
diff --git a/client/src/app/+login/login.component.ts b/client/src/app/+login/login.component.ts
index c03af38f2..ba0d412d6 100644
--- a/client/src/app/+login/login.component.ts
+++ b/client/src/app/+login/login.component.ts
@@ -197,8 +197,6 @@ The link will expire within 1 hour.`
197 } 197 }
198 198
199 private handleError (err: any) { 199 private handleError (err: any) {
200 console.log(err)
201
202 if (this.authService.isOTPMissingError(err)) { 200 if (this.authService.isOTPMissingError(err)) {
203 this.otpStep = true 201 this.otpStep = true
204 202
diff --git a/client/src/app/shared/shared-share-modal/video-share.component.ts b/client/src/app/shared/shared-share-modal/video-share.component.ts
index 43229c330..1b69aa2d0 100644
--- a/client/src/app/shared/shared-share-modal/video-share.component.ts
+++ b/client/src/app/shared/shared-share-modal/video-share.component.ts
@@ -203,8 +203,6 @@ export class VideoShareComponent {
203 // --------------------------------------------------------------------------- 203 // ---------------------------------------------------------------------------
204 204
205 async onUpdate () { 205 async onUpdate () {
206 console.log('on update')
207
208 if (this.playlist) { 206 if (this.playlist) {
209 this.playlistUrl = await this.getPlaylistUrl() 207 this.playlistUrl = await this.getPlaylistUrl()
210 this.playlistEmbedUrl = await this.getPlaylistEmbedUrl() 208 this.playlistEmbedUrl = await this.getPlaylistEmbedUrl()
diff --git a/client/src/assets/player/shared/peertube/peertube-plugin.ts b/client/src/assets/player/shared/peertube/peertube-plugin.ts
index cf96b33ba..af2147749 100644
--- a/client/src/assets/player/shared/peertube/peertube-plugin.ts
+++ b/client/src/assets/player/shared/peertube/peertube-plugin.ts
@@ -180,8 +180,10 @@ class PeerTubePlugin extends Plugin {
180 }) 180 })
181 181
182 this.player.on('seeked', () => { 182 this.player.on('seeked', () => {
183 // Don't take into account small seek events 183 const diff = Math.floor(this.player.currentTime()) - lastCurrentTime
184 if (Math.abs(this.player.currentTime() - lastCurrentTime) < 3) return 184
185 // Don't take into account small forwards
186 if (diff > 0 && diff < 3) return
185 187
186 lastViewEvent = 'seek' 188 lastViewEvent = 'seek'
187 }) 189 })