Merge pull request #1232 from amitch6097/Issue#1231
Fix p5 console being cleared on pause
This commit is contained in:
		
						commit
						ec7c2d1ae9
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -334,10 +334,10 @@ 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) { | ||||||
|  |       this.props.clearConsole(); | ||||||
|       srcDoc.set(doc, localFiles); |       srcDoc.set(doc, localFiles); | ||||||
|       if (this.props.endSketchRefresh) { |       if (this.props.endSketchRefresh) { | ||||||
|         this.props.endSketchRefresh(); |         this.props.endSketchRefresh(); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Cassie Tarakajian
						Cassie Tarakajian