diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-20 01:01:25 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-20 01:01:25 +0800 |
commit | cc223b9eaba4710767227644d2db63298a6b8ecb (patch) | |
tree | 2626d90f6b8aeba96a68f941bb7e72d52d39eafc /packages | |
parent | f2c49e8b37141f26fafa4517ea7c6ca1804f82a0 (diff) | |
download | dexon-0x-contracts-cc223b9eaba4710767227644d2db63298a6b8ecb.tar dexon-0x-contracts-cc223b9eaba4710767227644d2db63298a6b8ecb.tar.gz dexon-0x-contracts-cc223b9eaba4710767227644d2db63298a6b8ecb.tar.bz2 dexon-0x-contracts-cc223b9eaba4710767227644d2db63298a6b8ecb.tar.lz dexon-0x-contracts-cc223b9eaba4710767227644d2db63298a6b8ecb.tar.xz dexon-0x-contracts-cc223b9eaba4710767227644d2db63298a6b8ecb.tar.zst dexon-0x-contracts-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.ts | 2 |
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); |