Add allowfullscreen attribute to oembed iframe (#10370)

for video player full screen button.
lolsob-rspec
rinsuki 2019-03-25 23:01:09 +09:00 committed by Eugen Rochko
parent 248de99443
commit 74e9a4dec4
1 changed files with 1 additions and 0 deletions

View File

@ -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)