From e534473f56157db683e8ca8469a84c656e07d78f Mon Sep 17 00:00:00 2001 From: Payton Swick Date: Mon, 25 Apr 2016 17:24:51 -0400 Subject: [PATCH] WebPreview: improve debug messages for markup --- client/components/web-preview/index.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/components/web-preview/index.jsx b/client/components/web-preview/index.jsx index 9ac7270e4876b..7ece9f911df2a 100644 --- a/client/components/web-preview/index.jsx +++ b/client/components/web-preview/index.jsx @@ -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 } ); },