diff options
author | haraldox <hnaumann+github@gmail.com> | 2018-01-19 17:29:57 +0100 |
---|---|---|
committer | haraldox <hnaumann+github@gmail.com> | 2018-01-19 17:29:57 +0100 |
commit | 799d0e944a53f02dceadb30e5b9c47e280062731 (patch) | |
tree | ad3015e27ce90f52834c2f82ba7f9a50f6640908 | |
parent | Merge pull request #587 from meetfranz/feature/remove-miner (diff) | |
download | ferdium-app-799d0e944a53f02dceadb30e5b9c47e280062731.tar.gz ferdium-app-799d0e944a53f02dceadb30e5b9c47e280062731.tar.zst ferdium-app-799d0e944a53f02dceadb30e5b9c47e280062731.zip |
allow arbitrary routes in dev mode
navigate to other routes in the console by typing `document.location.href = "#path/to/route"`
-rw-r--r-- | src/stores/UserStore.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js index 09000dcdb..3a43668a7 100644 --- a/src/stores/UserStore.js +++ b/src/stores/UserStore.js | |||
@@ -237,7 +237,9 @@ export default class UserStore extends Store { | |||
237 | && currentRoute.includes(this.BASE_ROUTE) | 237 | && currentRoute.includes(this.BASE_ROUTE) |
238 | && (this.hasCompletedSignup | 238 | && (this.hasCompletedSignup |
239 | || this.hasCompletedSignup === null)) { | 239 | || this.hasCompletedSignup === null)) { |
240 | this.stores.router.push('/'); | 240 | if (!isDevMode) { |
241 | this.stores.router.push('/'); | ||
242 | } | ||
241 | } | 243 | } |
242 | }; | 244 | }; |
243 | 245 | ||