Fix resume video after peertube embed link click
This commit is contained in:
parent
df9e1d6978
commit
b4f8277cb6
|
@ -32,7 +32,10 @@ class PeerTubeLinkButton extends Button {
|
||||||
|
|
||||||
private buildHref (time?: number) {
|
private buildHref (time?: number) {
|
||||||
let href = window.location.href.replace('embed', 'watch')
|
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
|
return href
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue