diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-12-02 21:00:30 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-12-02 21:00:30 -0500 |
| commit | 393dc6eaf8d5a119c9cf71f1f5dac44abf70db59 (patch) | |
| tree | 84d2856b9b7c97731970347a9357722f63679b4e /StoneIsland/platforms/ios/www/js/index.js | |
| parent | d6910087feae6cd30141a615f2de753c37af14b8 (diff) | |
build..
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") } |
