aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/utils/utils.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-20 03:10:06 +0800
committerGitHub <noreply@github.com>2018-07-20 03:10:06 +0800
commitf1c3840c3b0804428f02306f50b200d1f0fc3a88 (patch)
treed421287ec329dae9800fb7a542a141d648638eaf /packages/website/ts/utils/utils.ts
parent9b6476a6b7db8db7b0fc6bbf9306c01566fb47a9 (diff)
parente5c5b36a73aad7a84e9540d905bc568997d12c5b (diff)
downloaddexon-0x-contracts-f1c3840c3b0804428f02306f50b200d1f0fc3a88.tar
dexon-0x-contracts-f1c3840c3b0804428f02306f50b200d1f0fc3a88.tar.gz
dexon-0x-contracts-f1c3840c3b0804428f02306f50b200d1f0fc3a88.tar.bz2
dexon-0x-contracts-f1c3840c3b0804428f02306f50b200d1f0fc3a88.tar.lz
dexon-0x-contracts-f1c3840c3b0804428f02306f50b200d1f0fc3a88.tar.xz
dexon-0x-contracts-f1c3840c3b0804428f02306f50b200d1f0fc3a88.tar.zst
dexon-0x-contracts-f1c3840c3b0804428f02306f50b200d1f0fc3a88.zip
Merge pull request #897 from 0xProject/doc-changes
Doc Changes for RC publish
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);