diff options
| author | Jules Laplace <jules@okfoc.us> | 2017-04-02 19:34:33 +0200 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2017-04-02 19:34:33 +0200 |
| commit | 8a5e6dda222872aa1137482811b993fb8f81edb6 (patch) | |
| tree | a92e51e1613cd6be6ac37755bb676d936af9e7ba /StoneIsland/www/js/index.js | |
| parent | 76f432ac0eba3c750a753fd8f7841890782581e6 (diff) | |
check hostname and launch in test mode
Diffstat (limited to 'StoneIsland/www/js/index.js')
| -rwxr-xr-x | StoneIsland/www/js/index.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js index e583a2cd..43b55b04 100755 --- a/StoneIsland/www/js/index.js +++ b/StoneIsland/www/js/index.js @@ -4,7 +4,13 @@ var app = (function(){ app.init = function(){ console.log("init") - sdk.init({ env: "test" }) + if (window.location.hostname === 'lvh.me' || window.location.hostname === 'stone.giraffe.life') { + console.log('launching in test mode') + sdk.init({ env: "test" }) + } + else { + sdk.init({ env: "production" }) + } app.bind() app.build() |
