diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-12-02 21:00:56 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-12-02 21:01:09 -0500 |
| commit | afe471dd05516695ed44eccbe617dae7af4eddbd (patch) | |
| tree | d69d268553eff8d21538761d63814140c9ff7a14 /StoneIsland/www/js/index.js | |
| parent | 393dc6eaf8d5a119c9cf71f1f5dac44abf70db59 (diff) | |
populate archive..
Diffstat (limited to 'StoneIsland/www/js/index.js')
| -rw-r--r-- | StoneIsland/www/js/index.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js index e6bdf49f..573ce720 100644 --- a/StoneIsland/www/js/index.js +++ b/StoneIsland/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") } |
