Skip to content

Commit

Permalink
WebPreview: improve debug messages for markup
Browse files Browse the repository at this point in the history
  • Loading branch information
sirbrillig committed Apr 25, 2016
1 parent ff29bec commit e534473
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/components/web-preview/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,11 @@ const WebPreview = React.createClass( {
debug( 'preview loaded, but nothing to show' );
return;
}
debug( 'preview loaded:', this.state.iframeUrl );
if ( this.props.previewMarkup ) {
debug( 'preview loaded with markup' );
this.props.onLoad( this.refs.iframe.contentDocument );
} else {
debug( 'preview loaded for url:', this.state.iframeUrl );
}
this.setState( { loaded: true } );
},
Expand Down

0 comments on commit e534473

Please sign in to comment.