Skip to content

Commit 95986a2

Browse files
committed
⛏ create uri method for bypassing the mobile screen
1 parent ca0d953 commit 95986a2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

client/modules/IDE/pages/IDEViewMobile.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const Screen = ({ children }) => (
2222
</div>
2323
);
2424
Screen.propTypes = {
25-
children: PropTypes.element.isRequired
25+
children: PropTypes.node.isRequired
2626
};
2727

2828
export default () => (

client/routes.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
2830
const isMobile = () => window.innerWidth <= 760;
29-
const IDEView = isMobile() ? IDEViewMobileScreen : IDEViewScreen;
31+
const IDEView = isMobile() && !ignoreMobile() ? IDEViewMobileScreen : IDEViewScreen;
3032

3133
const routes = store => (
3234
<Route path="/" component={App} onChange={() => { onRouteChange(store); }}>

0 commit comments

Comments
 (0)