Skip to content

Commit

Permalink
#95: Prevent duplicated malformed div
Browse files Browse the repository at this point in the history
  • Loading branch information
omarlopesino committed Apr 9, 2021
1 parent e7e7142 commit 5945797
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions youtube/plugin.js
Expand Up @@ -309,11 +309,6 @@
url = url + '?' + params.join('&');
}

if (this.getContentElement('youtubePlugin', 'chkResponsive').getValue() === true) {
content += '<div class="youtube-embed-wrapper" style="position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden">';
responsiveStyle = 'style="position:absolute;top:0;left:0;width:100%;height:100%"';
}

if (this.getContentElement('youtubePlugin', 'chkOlderCode').getValue() === true) {
url = url.replace('embed/', 'v/');
url = url.replace(/&/g, '&amp;');
Expand Down

0 comments on commit 5945797

Please sign in to comment.