Fix title URL for embedded videos

This commit is contained in:
Omar Roth 2019-06-16 13:14:56 -05:00
parent 9dea251862
commit 2e1f9d5fa9
No known key found for this signature in database
GPG Key ID: B8254FB7EC3D37F2
1 changed files with 2 additions and 2 deletions

View File

@ -106,12 +106,12 @@ if (location.pathname.startsWith('/embed/')) {
player.overlay({
overlays: [{
start: 'loadstart',
content: '<h1><a href="' + location.href + '">' + player_data.title + '</a></h1>',
content: '<h1><a href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>',
end: 'playing',
align: 'top'
}, {
start: 'pause',
content: '<h1><a href="' + location.href + '">' + player_data.title + '</a></h1>',
content: '<h1><a href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>',
end: 'playing',
align: 'top'
}]