From 393dc6eaf8d5a119c9cf71f1f5dac44abf70db59 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 2 Dec 2015 21:00:30 -0500 Subject: build.. --- StoneIsland/platforms/ios/www/js/index.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'StoneIsland/platforms/ios/www/js/index.js') 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") } -- cgit v1.2.3-70-g09d2