Skip to content

Commit 9eda3d2

Browse files
rinsukiGargron
authored andcommitted
Add allowfullscreen attribute to oembed iframe (mastodon#10370)
for video player full screen button.
1 parent c9a3ac4 commit 9eda3d2

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)