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 }) => (
22
22
</ div >
23
23
) ;
24
24
Screen . propTypes = {
25
- children : PropTypes . element . isRequired
25
+ children : PropTypes . node . isRequired
26
26
} ;
27
27
28
28
export default ( ) => (
Original file line number Diff line number Diff line change @@ -25,8 +25,10 @@ const onRouteChange = (store) => {
25
25
store . dispatch ( stopSketch ( ) ) ;
26
26
} ;
27
27
28
+ const ignoreMobile = ( ) => window . location . search . substring ( 1 ) . includes ( 'ignoremobile' ) ;
29
+
28
30
const isMobile = ( ) => window . innerWidth <= 760 ;
29
- const IDEView = isMobile ( ) ? IDEViewMobileScreen : IDEViewScreen ;
31
+ const IDEView = isMobile ( ) && ! ignoreMobile ( ) ? IDEViewMobileScreen : IDEViewScreen ;
30
32
31
33
const routes = store => (
32
34
< Route path = "/" component = { App } onChange = { ( ) => { onRouteChange ( store ) ; } } >
You can’t perform that action at this time.
0 commit comments