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