File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const Screen = ({ children }) => (
2222 </ div >
2323) ;
2424Screen . propTypes = {
25- children : PropTypes . element . isRequired
25+ children : PropTypes . node . isRequired
2626} ;
2727
2828export default ( ) => (
Original file line number Diff line number Diff line change @@ -25,8 +25,10 @@ const onRouteChange = (store) => {
2525 store . dispatch ( stopSketch ( ) ) ;
2626} ;
2727
28+ const ignoreMobile = ( ) => window . location . search . substring ( 1 ) . includes ( 'ignoremobile' ) ;
29+
2830const isMobile = ( ) => window . innerWidth <= 760 ;
29- const IDEView = isMobile ( ) ? IDEViewMobileScreen : IDEViewScreen ;
31+ const IDEView = isMobile ( ) && ! ignoreMobile ( ) ? IDEViewMobileScreen : IDEViewScreen ;
3032
3133const routes = store => (
3234 < Route path = "/" component = { App } onChange = { ( ) => { onRouteChange ( store ) ; } } >
You can’t perform that action at this time.
0 commit comments