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.js16
1 files changed, 5 insertions, 11 deletions
diff --git a/StoneIsland/platforms/ios/www/js/index.js b/StoneIsland/platforms/ios/www/js/index.js
index 69a0a3e0..b90f74b1 100755
--- a/StoneIsland/platforms/ios/www/js/index.js
+++ b/StoneIsland/platforms/ios/www/js/index.js
@@ -12,6 +12,10 @@ var app = (function(){
sdk.init({ env: "production" })
}
+ accessibility.init(app.prebuild) // check if we can do native scrolling before build
+ }
+
+ app.prebuild = function(){
app.bind()
app.build()
@@ -86,15 +90,6 @@ var app = (function(){
sim.fetch(app.api_ready)
var image = new Image
image.src = "./img/compass-logo.png"
-
- MobileAccessibility.usePreferredTextZoom(true);
- MobileAccessibility.getTextZoom(function getTextZoomCallback(textZoom) {
- console.log('WebView text should be scaled to the preferred value ' + textZoom + '%')
- if (textZoom > 100) {
- app.accessible = true
- $("html").addClass('accessible')
- }
- });
}
else {
app.api_ready()
@@ -114,6 +109,7 @@ var app = (function(){
// }
// else {
// }
+ push.init()
if (navigator.onLine) {
app.account.connect(window.deepLinkRoute || '/intro')
@@ -128,8 +124,6 @@ var app = (function(){
app.router.go("intro")
app.finished_launching()
}
-
- push.init()
}
app.finished_launching = function(){