diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-30 10:49:27 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-30 10:49:27 +0200 |
commit | b4f8277cb6503bd889654f0e4f364627e9e00af9 (patch) | |
tree | 46e595832104fc0c6113d36d6e855b447de928d5 /client/src/assets/player | |
parent | df9e1d697839c2b3228cf23483b613cf94172809 (diff) | |
download | PeerTube-b4f8277cb6503bd889654f0e4f364627e9e00af9.tar.gz PeerTube-b4f8277cb6503bd889654f0e4f364627e9e00af9.tar.zst PeerTube-b4f8277cb6503bd889654f0e4f364627e9e00af9.zip |
Fix resume video after peertube embed link click
Diffstat (limited to 'client/src/assets/player')
-rw-r--r-- | client/src/assets/player/peertube-link-button.ts | 5 |
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 | } |