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 | |
| parent | 76f432ac0eba3c750a753fd8f7841890782581e6 (diff) | |
check hostname and launch in test mode
| -rwxr-xr-x | StoneIsland/www/js/index.js | 8 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/products/filters/SizeFilter.js | 1 |
2 files changed, 7 insertions, 2 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() diff --git a/StoneIsland/www/js/lib/products/filters/SizeFilter.js b/StoneIsland/www/js/lib/products/filters/SizeFilter.js index ef5ce789..6efcdeec 100644 --- a/StoneIsland/www/js/lib/products/filters/SizeFilter.js +++ b/StoneIsland/www/js/lib/products/filters/SizeFilter.js @@ -19,7 +19,6 @@ var SizeFilter = View.extend({ sizes.sort(function(a,b){ return a.Id - b.Id }) - console.log(sizes) var cats = sizes.map(function(cat){ return { id: cat.Id, |
