@@ -366,14 +366,35 @@ PreviewFrame.defaultProps = {
366
366
const mapStateToProps = state => ( {
367
367
files : state . files ,
368
368
htmlFile : getHTMLFile ( state . files ) ,
369
+ content :
370
+ ( state . files . find ( file => file . isSelectedFile ) ||
371
+ state . files . find ( file => file . name === 'sketch.js' ) ||
372
+ state . files . find ( file => file . name !== 'root' ) ) . content ,
369
373
isPlaying : state . ide . isPlaying ,
370
374
isAccessibleOutputPlaying : state . ide . isAccessibleOutputPlaying ,
371
375
previewIsRefreshing : state . ide . previewIsRefreshing ,
372
376
textOutput : state . preferences . textOutput ,
373
377
gridOutput : state . preferences . gridOutput ,
374
378
soundOutput : state . preferences . soundOutput ,
379
+ language : state . preferences . language ,
380
+ autorefresh : state . preferences . autorefresh ,
375
381
} ) ;
376
382
383
+
384
+ /*
385
+ setTextOutput={this.props.setTextOutput}
386
+ setGridOutput={this.props.setGridOutput}
387
+ setSoundOutput={this.props.setSoundOutput}
388
+ dispatchConsoleEvent={this.props.dispatchConsoleEvent}
389
+ endSketchRefresh={this.props.endSketchRefresh}
390
+ stopSketch={this.props.stopSketch}
391
+ setBlobUrl={this.props.setBlobUrl}
392
+ expandConsole={this.props.expandConsole}
393
+ clearConsole={this.props.clearConsole}
394
+ cmController={this.cmController}
395
+ */
396
+
397
+
377
398
const mapDispatchToProps = dispatch => bindActionCreators (
378
399
Object . assign (
379
400
{ } ,
0 commit comments