1
0
Fork 0

Fix resume video after peertube embed link click

This commit is contained in:
Chocobozzz 2018-05-30 10:49:27 +02:00
parent df9e1d6978
commit b4f8277cb6
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -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
}