Skip to content

Commit

Permalink
Add allowfullscreen attribute to oembed iframe (mastodon#10370)
Browse files Browse the repository at this point in the history
for video player full screen button.
  • Loading branch information
rinsuki authored and Gargron committed Mar 25, 2019
1 parent c9a3ac4 commit 9eda3d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/serializers/oembed_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def html
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)
Expand Down

0 comments on commit 9eda3d2

Please sign in to comment.