Skip to content
Snippets Groups Projects
Commit d8b6431a authored by rinsuki's avatar rinsuki Committed by Eugen Rochko
Browse files

Add allowfullscreen attribute to oembed iframe (#10370)

for video player full screen button.
parent 94aceb85
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment