aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-13 13:48:02 +0100
committerChocobozzz <me@florianbigard.com>2022-01-13 13:48:02 +0100
commit696b45deb63bc9f36da9c9ee55c5d4a3a883b87e (patch)
tree35c0a134cb90c9226253cbf8a89aa16040f6a629 /client/src/app/+videos
parentd7b052ff4e5604043cd4405ed400f314d0e9a412 (diff)
downloadPeerTube-696b45deb63bc9f36da9c9ee55c5d4a3a883b87e.tar.gz
PeerTube-696b45deb63bc9f36da9c9ee55c5d4a3a883b87e.tar.zst
PeerTube-696b45deb63bc9f36da9c9ee55c5d4a3a883b87e.zip
Fix timestamp click
Diffstat (limited to 'client/src/app/+videos')
-rw-r--r--client/src/app/+videos/+video-watch/shared/timestamp-route-transformer.directive.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/client/src/app/+videos/+video-watch/shared/timestamp-route-transformer.directive.ts b/client/src/app/+videos/+video-watch/shared/timestamp-route-transformer.directive.ts
index 91fe5bf5d..ef9f5a59f 100644
--- a/client/src/app/+videos/+video-watch/shared/timestamp-route-transformer.directive.ts
+++ b/client/src/app/+videos/+video-watch/shared/timestamp-route-transformer.directive.ts
@@ -11,13 +11,11 @@ export class TimestampRouteTransformerDirective {
11 const target = $event.target as HTMLLinkElement 11 const target = $event.target as HTMLLinkElement
12 12
13 if (target.hasAttribute('href') !== true) return 13 if (target.hasAttribute('href') !== true) return
14 if (!target.classList.contains('video-timestamp')) return
14 15
15 const ngxLink = document.createElement('a') 16 const ngxLink = document.createElement('a')
16 ngxLink.href = target.getAttribute('href') 17 ngxLink.href = target.getAttribute('href')
17 18
18 // we only care about reflective links
19 if (ngxLink.host !== window.location.host) return
20
21 const ngxLinkParams = new URLSearchParams(ngxLink.search) 19 const ngxLinkParams = new URLSearchParams(ngxLink.search)
22 if (ngxLinkParams.has('start') !== true) return 20 if (ngxLinkParams.has('start') !== true) return
23 21