summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--StoneIsland/www/js/sdk/_sdk.js4
-rw-r--r--proxy/index.js3
2 files changed, 3 insertions, 4 deletions
diff --git a/StoneIsland/www/js/sdk/_sdk.js b/StoneIsland/www/js/sdk/_sdk.js
index 31fd96ca..a0250f77 100644
--- a/StoneIsland/www/js/sdk/_sdk.js
+++ b/StoneIsland/www/js/sdk/_sdk.js
@@ -5,7 +5,7 @@ var sdk = (function(){
// var endpoint = "http://api.yoox.biz/"
sdk.init = function(opt){
- switch (opt.env) {
+ switch (opt.env || "development") {
case 'test':
endpoint = "http://lvh.me:9090/"
break
@@ -33,4 +33,4 @@ var sdk = (function(){
})
return sdk
-})() \ No newline at end of file
+})()
diff --git a/proxy/index.js b/proxy/index.js
index ae9b0aa9..d2d4e738 100644
--- a/proxy/index.js
+++ b/proxy/index.js
@@ -45,7 +45,6 @@ server.on('request', function (req, res){
})
-
/*
headers: {
"x-yoox-appname": auth.appname,
@@ -126,4 +125,4 @@ function stream (req, res) {
res.end()
})
})
-} \ No newline at end of file
+}