summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/index.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/index.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/StoneIsland/platforms/ios/www/js/index.js b/StoneIsland/platforms/ios/www/js/index.js
index 8574372d..3947b43e 100755
--- a/StoneIsland/platforms/ios/www/js/index.js
+++ b/StoneIsland/platforms/ios/www/js/index.js
@@ -23,7 +23,7 @@ var app = (function(){
app.bind = function(){
document.addEventListener('touchmove', function(e){ e.preventDefault() })
if (!app.accessible) {
- FastClick.attach(document.body)
+ // FastClick.attach(document.body)
}
}
@@ -87,10 +87,11 @@ var app = (function(){
document.addEventListener('resume', app.resumed, false)
document.addEventListener('online', app.online, false)
document.addEventListener('offline', app.offline, false)
- cordova.plugins.Keyboard.disableScroll(true)
- cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false)
+ window.Keyboard.disableScroll(true)
+ // window.Keyboard.HideKeyboardFormAccessoryBar(false)
+ analytics.init()
geo.fetch()
- sim.fetch(app.api_ready)
+ simcard.fetch(app.api_ready)
var image = new Image
image.src = "./img/compass-logo.png"
}
@@ -117,8 +118,11 @@ var app = (function(){
if (navigator.onLine) {
app.account.connect(window.deepLinkRoute || '/intro')
app.blog.fetch(function(){
- console.log("navigating to deep link route after fetch")
+ console.log("blog fetched, launching router")
app.router.initial_route = window.deepLinkRoute || null
+ if (app.router.initial_route) {
+ analytics.sendPageView('push/' + app.router.initial_route)
+ }
app.router.launch()
})
}