diff --git a/client/modules/IDE/components/PreviewFrame.jsx b/client/modules/IDE/components/PreviewFrame.jsx index 45fa00fd..ef19c96d 100644 --- a/client/modules/IDE/components/PreviewFrame.jsx +++ b/client/modules/IDE/components/PreviewFrame.jsx @@ -334,10 +334,10 @@ class PreviewFrame extends React.Component { } renderSketch() { - this.props.clearConsole(); const doc = this.iframeElement; const localFiles = this.injectLocalFiles(); if (this.props.isPlaying) { + this.props.clearConsole(); srcDoc.set(doc, localFiles); if (this.props.endSketchRefresh) { this.props.endSketchRefresh();