diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-06-16 09:41:33 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-06-16 09:41:33 -0500 |
| commit | 485459b8b24fd3fd11f8d8c28d846eb6fd3636fe (patch) | |
| tree | c4241904dd073a1eeb0bb800a0b955d655475a1f /assets/js | |
| parent | fcf377d26b3e54c9b5f72d0a3c497d9504259f56 (diff) | |
| download | invidious-485459b8b24fd3fd11f8d8c28d846eb6fd3636fe.tar.gz invidious-485459b8b24fd3fd11f8d8c28d846eb6fd3636fe.tar.bz2 invidious-485459b8b24fd3fd11f8d8c28d846eb6fd3636fe.zip | |
Add clickable title for embedded videos
Diffstat (limited to 'assets/js')
| -rw-r--r-- | assets/js/player.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/player.js b/assets/js/player.js index 37dd1dcf..18fa940d 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -106,12 +106,12 @@ if (location.pathname.startsWith('/embed/')) { player.overlay({ overlays: [{ start: 'loadstart', - content: '<h1>' + player_data.title + '</h1>', + content: '<h1><a href="' + location.href + '">' + player_data.title + '</a></h1>', end: 'playing', align: 'top' }, { start: 'pause', - content: '<h1>' + player_data.title + '</h1>', + content: '<h1><a href="' + location.href + '">' + player_data.title + '</a></h1>', end: 'playing', align: 'top' }] |
