parent
705dd5c796
commit
07b55d7ee4
2 changed files with 4 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue