summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-11-05 20:52:40 +0100
committerJules Laplace <julescarbon@gmail.com>2017-11-05 20:52:40 +0100
commitf7ac115cc2c43d08f61c0e5a16657fd732a0a520 (patch)
tree08b1289094669d8b75f418ec46dacb0bdf0cc0d9 /StoneIsland/www/js/index.js
parent60a306af8be5e06ac4c13419dd6b4189105f216e (diff)
API check
Diffstat (limited to 'StoneIsland/www/js/index.js')
-rwxr-xr-xStoneIsland/www/js/index.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js
index e554f672..511849ad 100755
--- a/StoneIsland/www/js/index.js
+++ b/StoneIsland/www/js/index.js
@@ -79,11 +79,16 @@ var app = (function(){
cordova.plugins.Keyboard.disableScroll(true)
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false)
geo.fetch()
- sim.fetch()
+ sim.fetch(app.api_ready)
var image = new Image
image.src = "./img/compass-logo.png"
}
-
+ else {
+ app.api_ready()
+ }
+ }
+
+ app.api_ready = function(){
if (is_iphone_x) {
StatusBar.hide()
}