diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-06-16 14:49:00 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-06-16 14:49:00 -0500 |
| commit | 1477f99c2c79cae476d8e2f0ecd536cbcd788dd3 (patch) | |
| tree | 201237d95790dba20ed21c79fbfd5064145fb224 /assets/js | |
| parent | 2e1f9d5fa9d60239c8d912d94b63324c26cec4ee (diff) | |
| download | invidious-1477f99c2c79cae476d8e2f0ecd536cbcd788dd3.tar.gz invidious-1477f99c2c79cae476d8e2f0ecd536cbcd788dd3.tar.bz2 invidious-1477f99c2c79cae476d8e2f0ecd536cbcd788dd3.zip | |
Add target="_blank" to embed titles
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 e0f37d2b..8d18ea82 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><a href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>', + content: '<h1><a rel="noopener" target="_blank" href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>', end: 'playing', align: 'top' }, { start: 'pause', - content: '<h1><a href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>', + content: '<h1><a rel="noopener" target="_blank" href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>', end: 'playing', align: 'top' }] |
