mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00:00
FIX: Explicitly set allowfullscreen
on Wistia Oneboxes (#15828)
This commit is contained in:
parent
6758835387
commit
4ef56b0ca4
@ -11,7 +11,25 @@ module Onebox
|
||||
always_https
|
||||
|
||||
def to_html
|
||||
get_oembed.html
|
||||
oembed = get_oembed
|
||||
extracted_url = oembed.html.match(/iframe\ src\=\"(.*?)\"/)
|
||||
|
||||
if extracted_url
|
||||
iframe_src = extracted_url[1]
|
||||
|
||||
<<-HTML
|
||||
<iframe
|
||||
src="#{iframe_src}"
|
||||
width="#{oembed.width}"
|
||||
height="#{oembed.height}"
|
||||
title="#{oembed.title}"
|
||||
frameborder="0"
|
||||
allowfullscreen
|
||||
></iframe>
|
||||
HTML
|
||||
else
|
||||
oembed.html
|
||||
end
|
||||
end
|
||||
|
||||
def placeholder_html
|
||||
|
Loading…
x
Reference in New Issue
Block a user