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 hiyuki2578 committed Oct 2, 2019
1 parent 2d1b00f commit 95a1f10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/serializers/oembed_serializer.rb
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 95a1f10

Please sign in to comment.