Skip to content

Commit

Permalink
Fix iframe JavaScript indendation
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Aug 6, 2018
1 parent 3a52e52 commit 831e328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/sandbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ class Sandbox extends Component {
// keeping the correct aspect ratio.
var potentialIframe = document.body.children[0];
if ( 'DIV' === potentialIframe.tagName || 'SPAN' === potentialIframe.tagName ) {
potentialIframe = potentialIframe.children[0];
}
potentialIframe = potentialIframe.children[0];
}
if ( potentialIframe && 'IFRAME' === potentialIframe.tagName ) {
if ( potentialIframe.width ) {
iframe = potentialIframe;
Expand Down

0 comments on commit 831e328

Please sign in to comment.