diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-07-18 02:48:00 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-07-19 04:59:49 +0800 |
commit | a039b66533f0d741e40eb3637fc46c5f84455773 (patch) | |
tree | e12f0481a06bcf3663b15fc6dad5e7f77665f475 /packages/website/ts | |
parent | 3a18c249f5c780240f3dac7eb318118740056367 (diff) | |
download | dexon-0x-contracts-a039b66533f0d741e40eb3637fc46c5f84455773.tar.gz dexon-0x-contracts-a039b66533f0d741e40eb3637fc46c5f84455773.tar.zst dexon-0x-contracts-a039b66533f0d741e40eb3637fc46c5f84455773.zip |
Fix development environment check
Diffstat (limited to 'packages/website/ts')
-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); |