diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-03-17 12:03:32 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-03-17 12:03:32 -0400 |
| commit | 5d978aecfb257842f9921cb8b746334d8a847193 (patch) | |
| tree | 140434142fc6b5471db94a43022c2c7d7983a199 /StoneIsland/platforms/ios/www/js/index.js | |
| parent | 89b2dd78571b26d09af1f9f820abfaeba3c864ba (diff) | |
build
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/index.js')
| -rwxr-xr-x | StoneIsland/platforms/ios/www/js/index.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/StoneIsland/platforms/ios/www/js/index.js b/StoneIsland/platforms/ios/www/js/index.js index 63059c26..6bea75d0 100755 --- a/StoneIsland/platforms/ios/www/js/index.js +++ b/StoneIsland/platforms/ios/www/js/index.js @@ -73,7 +73,7 @@ var app = (function(){ cordova.plugins.Keyboard.disableScroll(true) geo.fetch() var image = new Image - image.src = "/img/compass-logo.png" + image.src = "./img/compass-logo.png" } app.view = null @@ -86,7 +86,11 @@ var app = (function(){ // } if (navigator.onLine) { - app.account.connect( app.router.launch.bind(app.router) ) + app.account.connect() + app.blog.fetch(function(){ + app.router.initial_route = "/intro" + app.router.launch() + }) } else { console.log(">> LAUNCHED WHILE OFFLINE") @@ -97,7 +101,6 @@ var app = (function(){ push.init() } - app.did_finish_launching = app.finished_launching = function(){ console.log(">> FINISHED LAUNCHING") if (window.cordova) { |
