From f7ac115cc2c43d08f61c0e5a16657fd732a0a520 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 5 Nov 2017 20:52:40 +0100 Subject: API check --- StoneIsland/www/js/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'StoneIsland/www/js/index.js') 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() } -- cgit v1.2.3-70-g09d2