diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-11-24 17:58:49 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-11-24 17:58:49 +0100 |
| commit | 2ed50ad9ea7844afcd8aa2a63bf0844460e24d37 (patch) | |
| tree | beba970eb341d5dde9a1a0454afba1c5caa7fa3a /StoneIsland/www/js/index.js | |
| parent | 163d269eef310617a23b6b8be8270b44794dd723 (diff) | |
really fix deep linking
Diffstat (limited to 'StoneIsland/www/js/index.js')
| -rwxr-xr-x | StoneIsland/www/js/index.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js index 4cae2f24..164d98cc 100755 --- a/StoneIsland/www/js/index.js +++ b/StoneIsland/www/js/index.js @@ -103,10 +103,10 @@ var app = (function(){ // } if (navigator.onLine) { - app.account.connect(app.deepLinkRoute || '/intro') + app.account.connect(window.deepLinkRoute || '/intro') app.blog.fetch(function(){ console.log("navigating to deep link route after fetch") - app.router.initial_route = app.deepLinkRoute || "/intro" + app.router.initial_route = window.deepLinkRoute || "/intro" app.router.launch() }) } @@ -124,6 +124,9 @@ var app = (function(){ if (window.cordova) { navigator.splashscreen.hide() } + if (window.deepLinkRoute) { + app.router.go(window.deepLinkRoute) + } $("body").removeClass("loading") } |
