summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2017-04-02 20:43:54 +0200
committerJules Laplace <jules@okfoc.us>2017-04-02 20:44:32 +0200
commitd0e609bf53d071f0ae66682fb1a2c21201b437a4 (patch)
treefb60e84111dfa4cd65c669f02482d4c9d855f13f /StoneIsland/platforms/ios/www/js/index.js
parentf8c49771075e1169468ff58fe73817c6a6325a5e (diff)
build
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/index.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/index.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/StoneIsland/platforms/ios/www/js/index.js b/StoneIsland/platforms/ios/www/js/index.js
index 06bfaaac..43b55b04 100755
--- a/StoneIsland/platforms/ios/www/js/index.js
+++ b/StoneIsland/platforms/ios/www/js/index.js
@@ -4,7 +4,13 @@ var app = (function(){
app.init = function(){
console.log("init")
- sdk.init({ env: "production" })
+ 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()