Merge pull request #338 from hello-motto/youtube-allowfullscreen
Add allowfullscreen attribute on inframe into youtube and youtubeplaylist services
This commit is contained in:
commit
1030a8305c
|
|
@ -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;
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue