diff --git a/client/routes.jsx b/client/routes.jsx index ae1876d4..28880c76 100644 --- a/client/routes.jsx +++ b/client/routes.jsx @@ -37,7 +37,7 @@ const mobileFirst = (MobileComponent, Fallback) => props => ( // TODO: This short-circuit seems unnecessary - using the mobile navigator (future) should prevent this from being called const onRouteChange = (store) => { const path = window.location.pathname; - if (path.includes('/mobile/preview')) return; + if (path.includes('preview')) return; store.dispatch(stopSketch()); }; @@ -57,28 +57,24 @@ const routes = store => ( - - - - - - - - + + + + + + + + + + + - - - - - - - - - - + {/* Mobile-only Routes */} + + );