aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-20 01:01:25 +0800
committerFabio Berger <me@fabioberger.com>2018-07-20 01:01:25 +0800
commitcc223b9eaba4710767227644d2db63298a6b8ecb (patch)
tree2626d90f6b8aeba96a68f941bb7e72d52d39eafc /packages
parentf2c49e8b37141f26fafa4517ea7c6ca1804f82a0 (diff)
downloaddexon-sol-tools-cc223b9eaba4710767227644d2db63298a6b8ecb.tar.gz
dexon-sol-tools-cc223b9eaba4710767227644d2db63298a6b8ecb.tar.zst
dexon-sol-tools-cc223b9eaba4710767227644d2db63298a6b8ecb.zip
Compare host rather then origin so that it comes without the http/https prefix
Diffstat (limited to 'packages')
-rw-r--r--packages/website/ts/utils/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts
index e656d5963..439af5e4b 100644
--- a/packages/website/ts/utils/utils.ts
+++ b/packages/website/ts/utils/utils.ts
@@ -334,7 +334,7 @@ export const utils = {
return utils.isDogfood() ? configs.BACKEND_BASE_STAGING_URL : configs.BACKEND_BASE_PROD_URL;
},
isDevelopment(): boolean {
- return _.includes(configs.DOMAINS_DEVELOPMENT, window.location.origin);
+ return _.includes(configs.DOMAINS_DEVELOPMENT, window.location.host);
},
isStaging(): boolean {
return _.includes(window.location.href, configs.DOMAIN_STAGING);