Merge pull request #338 from hello-motto/youtube-allowfullscreen

Add allowfullscreen attribute on inframe into youtube and youtubeplaylist services
This commit is contained in:
Amauri CHAMPEAUX 2019-07-30 08:54:46 +02:00 committed by GitHub
commit 1030a8305c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2178,7 +2178,7 @@ tarteaucitron.services.youtube = {
} else {
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;
});
},
@ -2225,7 +2225,7 @@ tarteaucitron.services.youtubeplaylist = {
} else {
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;
});
},