summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-11-08 11:18:58 -0500
committerJules Laplace <jules@okfoc.us>2016-11-08 11:18:58 -0500
commitf0f43ac073226da65475560c05964c6993540c54 (patch)
treedfb4c2f913ba5a65c602e832548c8783d95ffd84 /StoneIsland/www/js/index.js
parent8b0d192d82bf12f3d82be6e9447918521e99d5ca (diff)
parenta3b4833243672f75e747db8f2a94695ff87cf83b (diff)
merge
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) {