aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-30 10:49:27 +0200
committerChocobozzz <me@florianbigard.com>2018-05-30 10:49:27 +0200
commitb4f8277cb6503bd889654f0e4f364627e9e00af9 (patch)
tree46e595832104fc0c6113d36d6e855b447de928d5 /client/src/assets
parentdf9e1d697839c2b3228cf23483b613cf94172809 (diff)
downloadPeerTube-b4f8277cb6503bd889654f0e4f364627e9e00af9.tar.gz
PeerTube-b4f8277cb6503bd889654f0e4f364627e9e00af9.tar.zst
PeerTube-b4f8277cb6503bd889654f0e4f364627e9e00af9.zip
Fix resume video after peertube embed link click
Diffstat (limited to 'client/src/assets')
-rw-r--r--client/src/assets/player/peertube-link-button.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-link-button.ts b/client/src/assets/player/peertube-link-button.ts
index a47adc2db..54d802732 100644
--- a/client/src/assets/player/peertube-link-button.ts
+++ b/client/src/assets/player/peertube-link-button.ts
@@ -32,7 +32,10 @@ class PeerTubeLinkButton extends Button {
32 32
33 private buildHref (time?: number) { 33 private buildHref (time?: number) {
34 let href = window.location.href.replace('embed', 'watch') 34 let href = window.location.href.replace('embed', 'watch')
35 if (time) href += '?start=' + time 35 if (time) {
36 if (window.location.search) href += '&start=' + time
37 else href += '?start=' + time
38 }
36 39
37 return href 40 return href
38 } 41 }