lib/onebox/mixins/twitch_onebox.rb in onebox-1.9.28.4 vs lib/onebox/mixins/twitch_onebox.rb in onebox-1.9.29

- old
+ new

@@ -22,10 +22,12 @@ def placeholder_html ::Onebox::Helpers.video_placeholder_html end def to_html - "<iframe src=\"//#{base_url}#{query_params}&autoplay=false\" width=\"620\" height=\"378\" frameborder=\"0\" style=\"overflow: hidden;\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"></iframe>" + <<~HTML + <iframe src="//#{base_url}#{query_params}&parent=#{options[:hostname]}&autoplay=false" width="620" height="378" frameborder="0" style="overflow: hidden;" scrolling="no" allowfullscreen="allowfullscreen"></iframe> + HTML end end end end end