aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/utils/utils.ts
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/website/ts/utils/utils.ts
parentf2c49e8b37141f26fafa4517ea7c6ca1804f82a0 (diff)
downloaddexon-sol-tools-cc223b9eaba4710767227644d2db63298a6b8ecb.tar
dexon-sol-tools-cc223b9eaba4710767227644d2db63298a6b8ecb.tar.gz
dexon-sol-tools-cc223b9eaba4710767227644d2db63298a6b8ecb.tar.bz2
dexon-sol-tools-cc223b9eaba4710767227644d2db63298a6b8ecb.tar.lz
dexon-sol-tools-cc223b9eaba4710767227644d2db63298a6b8ecb.tar.xz
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/website/ts/utils/utils.ts')
-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);