🧹 clean up routes.js
This commit is contained in:
parent
776c3d2caf
commit
eb3bc59382
1 changed files with 2 additions and 1 deletions
|
@ -22,10 +22,11 @@ const checkAuth = (store) => {
|
|||
store.dispatch(getUser());
|
||||
};
|
||||
|
||||
// This short-circuit seems unnecessary - using the mobile <Switch /> navigator (future) should prevent this from being called
|
||||
const onRouteChange = (store) => {
|
||||
// FIXME: This seems unnecessary - using the mobile <Switch /> navigator should prevent this from being called
|
||||
const path = window.location.pathname;
|
||||
if (path.includes('/mobile')) return;
|
||||
|
||||
store.dispatch(stopSketch());
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue