Fix resume video after peertube embed link click
This commit is contained in:
parent
df9e1d6978
commit
b4f8277cb6
1 changed files with 4 additions and 1 deletions
|
@ -32,7 +32,10 @@ class PeerTubeLinkButton extends Button {
|
|||
|
||||
private buildHref (time?: number) {
|
||||
let href = window.location.href.replace('embed', 'watch')
|
||||
if (time) href += '?start=' + time
|
||||
if (time) {
|
||||
if (window.location.search) href += '&start=' + time
|
||||
else href += '?start=' + time
|
||||
}
|
||||
|
||||
return href
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue