diff options
author | rinsuki <428rinsuki+git@gmail.com> | 2019-03-25 23:01:09 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-25 15:01:09 +0100 |
commit | d8b6431aa7dcfd1ddf7c19558ccc04779921f7d3 (patch) | |
tree | c02f3bb7c8d9c865d7c565c916f39448a8b772f7 /app/serializers | |
parent | 94aceb85ad638cfd02fecce1aed0be5157bcb133 (diff) |
Add allowfullscreen attribute to oembed iframe (#10370)
for video player full screen button.
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/oembed_serializer.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/oembed_serializer.rb b/app/serializers/oembed_serializer.rb index 0c8350e2d..01689633b 100644 --- a/app/serializers/oembed_serializer.rb +++ b/app/serializers/oembed_serializer.rb @@ -43,6 +43,7 @@ class OEmbedSerializer < ActiveModel::Serializer style: 'max-width: 100%; border: 0', width: width, height: height, + allowfullscreen: true, } content_tag(:iframe, nil, attributes) + content_tag(:script, nil, src: full_asset_url('embed.js', skip_pipeline: true), async: true) |