Add allowfullscreen attribute on inframe into youtube and youtubeplaylist services

This commit is contained in:
Jean-Baptiste Motto 2019-07-12 10:37:56 +02:00
parent fe84c6bc33
commit adb922050e
1 changed files with 2 additions and 2 deletions

View File

@ -2178,7 +2178,7 @@ tarteaucitron.services.youtube = {
} else { } else {
frame_height += '"" '; frame_height += '"" ';
} }
video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0"></iframe>'; video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0" allowfullscreen></iframe>';
return video_frame; return video_frame;
}); });
}, },
@ -2225,7 +2225,7 @@ tarteaucitron.services.youtubeplaylist = {
} else { } else {
frame_height += '"" '; frame_height += '"" ';
} }
video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" frameborder="0"></iframe>'; video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" frameborder="0" allowfullscreen></iframe>';
return video_frame; return video_frame;
}); });
}, },