Skip to content

Commit 95a1f10

Browse files
rinsukihiyuki2578
authored andcommitted
Add allowfullscreen attribute to oembed iframe (mastodon#10370)
for video player full screen button.
1 parent 2d1b00f commit 95a1f10

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/serializers/oembed_serializer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def html
4343
style: 'max-width: 100%; border: 0',
4444
width: width,
4545
height: height,
46+
allowfullscreen: true,
4647
}
4748

4849
content_tag(:iframe, nil, attributes) + content_tag(:script, nil, src: full_asset_url('embed.js', skip_pipeline: true), async: true)

0 commit comments

Comments
 (0)