diff options
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/index.js')
| -rw-r--r-- | StoneIsland/platforms/ios/www/js/index.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/StoneIsland/platforms/ios/www/js/index.js b/StoneIsland/platforms/ios/www/js/index.js index e6bdf49f..573ce720 100644 --- a/StoneIsland/platforms/ios/www/js/index.js +++ b/StoneIsland/platforms/ios/www/js/index.js @@ -2,11 +2,12 @@ var app = (function(){ var app = {} app.init = function(){ + + sdk.init({ env: "test" }) + app.bind() app.build() - - sdk.init({ env: "test" }) - + app.iscroll_options = { mouseWheel: true, scrollbars: true, @@ -69,7 +70,12 @@ var app = (function(){ app.view = null app.router = new SiteRouter () - app.account.connect( app.router.launch.bind(app.router) ) + if (sdk.env == "test") { + app.router.launch() + } + else { + app.account.connect( app.router.launch.bind(app.router) ) + } $("body").removeClass("loading") } |
