@@ -366,14 +366,35 @@ PreviewFrame.defaultProps = {
366366const mapStateToProps = state => ( {
367367 files : state . files ,
368368 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 ,
369373 isPlaying : state . ide . isPlaying ,
370374 isAccessibleOutputPlaying : state . ide . isAccessibleOutputPlaying ,
371375 previewIsRefreshing : state . ide . previewIsRefreshing ,
372376 textOutput : state . preferences . textOutput ,
373377 gridOutput : state . preferences . gridOutput ,
374378 soundOutput : state . preferences . soundOutput ,
379+ language : state . preferences . language ,
380+ autorefresh : state . preferences . autorefresh ,
375381} ) ;
376382
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+
377398const mapDispatchToProps = dispatch => bindActionCreators (
378399 Object . assign (
379400 { } ,
0 commit comments