mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 08:43:25 +08:00
Fix Twitch onebox multisite issue
This commit is contained in:
parent
dc2223b8be
commit
22ef6a7c29
|
@ -25,7 +25,7 @@ module Onebox
|
|||
|
||||
def to_html
|
||||
<<~HTML
|
||||
<iframe src="https://#{base_url}#{query_params}&parent=#{options[:hostname]}&autoplay=false" width="620" height="378" frameborder="0" style="overflow: hidden;" scrolling="no" allowfullscreen="allowfullscreen"></iframe>
|
||||
<iframe src="https://#{base_url}#{query_params}&parent=#{Discourse.current_hostname}&autoplay=false" width="620" height="378" frameborder="0" style="overflow: hidden;" scrolling="no" allowfullscreen="allowfullscreen"></iframe>
|
||||
HTML
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user