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() {
this.props.clearConsole();
const doc = this.iframeElement;
const localFiles = this.injectLocalFiles();
if (this.props.isPlaying) {
@ -378,7 +379,8 @@ PreviewFrame.propTypes = {
fullView: PropTypes.bool,
setBlobUrl: PropTypes.func.isRequired,
stopSketch: PropTypes.func.isRequired,
expandConsole: PropTypes.func.isRequired
expandConsole: PropTypes.func.isRequired,
clearConsole: PropTypes.func.isRequired,
};
PreviewFrame.defaultProps = {

View File

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