diff --git a/plugins/lazyYT/plugin.rb b/plugins/lazyYT/plugin.rb index 7a9b8fc2a28..866765e7e6f 100644 --- a/plugins/lazyYT/plugin.rb +++ b/plugins/lazyYT/plugin.rb @@ -17,8 +17,11 @@ class Onebox::Engine::YoutubeOnebox def to_html if video_id + video_width = (params['width'] && params['width'].to_i <= 695) ? params['width'] : 480 # embed width + video_height = (params['height'] && params['height'].to_i <= 500) ? params['height'] : 270 # embed height + # Put in the LazyYT div instead of the iframe - "
" + "" else super end