lib/onebox/engine/youtube_onebox.rb in onebox-2.2.12 vs lib/onebox/engine/youtube_onebox.rb in onebox-2.2.13

- old
+ new

@@ -49,25 +49,27 @@ end def to_html if video_id <<-HTML - <iframe width="#{WIDTH}" - height="#{HEIGHT}" - src="https://www.youtube.com/embed/#{video_id}?#{embed_params}" - frameborder="0" - allowfullscreen> - </iframe> + <iframe + src="https://www.youtube.com/embed/#{video_id}?#{embed_params}" + width="#{WIDTH}" + height="#{HEIGHT}" + frameborder="0" + allowfullscreen + ></iframe> HTML elsif list_id <<-HTML - <iframe width="#{WIDTH}" - height="#{HEIGHT}" - src="https://www.youtube.com/embed/videoseries?list=#{list_id}&wmode=transparent&rel=0&autohide=1&showinfo=1&enablejsapi=1" - frameborder="0" - allowfullscreen> - </iframe> + <iframe + src="https://www.youtube.com/embed/videoseries?list=#{list_id}&wmode=transparent&rel=0&autohide=1&showinfo=1&enablejsapi=1" + width="#{WIDTH}" + height="#{HEIGHT}" + frameborder="0" + allowfullscreen + ></iframe> HTML else # for channel pages html = Onebox::Engine::AllowlistedGenericOnebox.new(@url, @timeout).to_html return if Onebox::Helpers.blank?(html) @@ -164,9 +166,8 @@ p end rescue {} end - end end end