Fixed Issue #896 (#1049)

This commit is contained in:
Ankur Ingale 2019-05-01 03:14:41 +05:30 committed by Cassie Tarakajian
parent 705dd5c796
commit 07b55d7ee4
2 changed files with 4 additions and 1 deletions

View file

@ -324,6 +324,7 @@ class PreviewFrame extends React.Component {
} }
renderSketch() { renderSketch() {
this.props.clearConsole();
const doc = this.iframeElement; const doc = this.iframeElement;
const localFiles = this.injectLocalFiles(); const localFiles = this.injectLocalFiles();
if (this.props.isPlaying) { if (this.props.isPlaying) {
@ -378,7 +379,8 @@ PreviewFrame.propTypes = {
fullView: PropTypes.bool, fullView: PropTypes.bool,
setBlobUrl: PropTypes.func.isRequired, setBlobUrl: PropTypes.func.isRequired,
stopSketch: PropTypes.func.isRequired, stopSketch: PropTypes.func.isRequired,
expandConsole: PropTypes.func.isRequired expandConsole: PropTypes.func.isRequired,
clearConsole: PropTypes.func.isRequired,
}; };
PreviewFrame.defaultProps = { PreviewFrame.defaultProps = {

View file

@ -344,6 +344,7 @@ class IDEView extends React.Component {
stopSketch={this.props.stopSketch} stopSketch={this.props.stopSketch}
setBlobUrl={this.props.setBlobUrl} setBlobUrl={this.props.setBlobUrl}
expandConsole={this.props.expandConsole} expandConsole={this.props.expandConsole}
clearConsole={this.props.clearConsole}
/> />
</div> </div>
</div> </div>