summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/index.js')
-rwxr-xr-xStoneIsland/www/js/index.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js
index 63059c26..6bea75d0 100755
--- a/StoneIsland/www/js/index.js
+++ b/StoneIsland/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) {