mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-25 15:55:27 -04:00
add missing noreferrers
This commit is contained in:
parent
df8839d1f0
commit
64ac3b5203
4 changed files with 5 additions and 5 deletions
|
@ -180,7 +180,7 @@ var shareOptions = {
|
|||
};
|
||||
|
||||
if (location.pathname.startsWith('/embed/')) {
|
||||
var overlay_content = '<h1><a rel="noopener" target="_blank" href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>';
|
||||
var overlay_content = '<h1><a rel="noopener noreferrer" target="_blank" href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>';
|
||||
player.overlay({
|
||||
overlays: [
|
||||
{ start: 'loadstart', content: overlay_content, end: 'playing', align: 'top'},
|
||||
|
@ -450,7 +450,7 @@ if (!video_data.params.listen && video_data.params.annotations) {
|
|||
if (target === 'current') {
|
||||
location.href = path;
|
||||
} else if (target === 'new') {
|
||||
open(path, '_blank');
|
||||
open(path, '_blank', 'noopener,noreferrer')
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue