]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+videos/+video-watch/shared/timestamp-route-transformer.directive.ts
Merge branch 'release/4.2.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / shared / timestamp-route-transformer.directive.ts
index 91fe5bf5d34c3e631e0aa23532b082795ac7eb1c..ef9f5a59fd6d74f3c1a90e625dc188898cf8b3c2 100644 (file)
@@ -11,13 +11,11 @@ export class TimestampRouteTransformerDirective {
     const target = $event.target as HTMLLinkElement
 
     if (target.hasAttribute('href') !== true) return
+    if (!target.classList.contains('video-timestamp')) return
 
     const ngxLink = document.createElement('a')
     ngxLink.href = target.getAttribute('href')
 
-    // we only care about reflective links
-    if (ngxLink.host !== window.location.host) return
-
     const ngxLinkParams = new URLSearchParams(ngxLink.search)
     if (ngxLinkParams.has('start') !== true) return