From fefcceed06c7332662cd1dc692d99a13648d9bd4 Mon Sep 17 00:00:00 2001 From: Nazar Leush Date: Fri, 7 Apr 2017 20:56:08 +0300 Subject: [PATCH] [utils] embed code: put "border: 0" in iframe style --- lib/html-utils.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/html-utils.js b/lib/html-utils.js index a04d7d670..247c2ef60 100644 --- a/lib/html-utils.js +++ b/lib/html-utils.js @@ -48,15 +48,15 @@ if (!omitInlineStyles) { - $element.css('top', '0px') - .css('left', '0px') + $element.css('top', '0') + .css('left', '0') .css('width', '100%') .css('height', '100%') .css('position', 'absolute'); - $container.css('left', '0px') + $container.css('left', '0') .css('width', '100%') - .css('height', '0px') + .css('height', '0') .css('position', 'relative'); // Default aspect ratio. @@ -266,7 +266,7 @@ .attr('allowfullscreen', ''); if (!omitInlineStyles) { - $iframe.attr('frameborder', '0'); + $iframe.css('border', '0'); } if (data.media && data.media.scrolling === 'no') {