diff options
author | Fabio Berger <me@fabioberger.com> | 2018-04-12 07:56:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-12 07:56:33 +0800 |
commit | 5eb90697c824f1c98467cdb6cd71dbb94ff70805 (patch) | |
tree | b5e02ec65e8ae5298761f07eae18df145024bb16 /packages/website/ts/utils | |
parent | c47fb8f9a83d409c092dd7449054fa16cf0fa1c9 (diff) | |
parent | faedd2fa0b2582ea24ca4624e13ea7466de18408 (diff) | |
download | dexon-sol-tools-5eb90697c824f1c98467cdb6cd71dbb94ff70805.tar dexon-sol-tools-5eb90697c824f1c98467cdb6cd71dbb94ff70805.tar.gz dexon-sol-tools-5eb90697c824f1c98467cdb6cd71dbb94ff70805.tar.bz2 dexon-sol-tools-5eb90697c824f1c98467cdb6cd71dbb94ff70805.tar.lz dexon-sol-tools-5eb90697c824f1c98467cdb6cd71dbb94ff70805.tar.xz dexon-sol-tools-5eb90697c824f1c98467cdb6cd71dbb94ff70805.tar.zst dexon-sol-tools-5eb90697c824f1c98467cdb6cd71dbb94ff70805.zip |
Merge pull request #519 from 0xProject/fix/docImprovements
Doc fixes and improvements
Diffstat (limited to 'packages/website/ts/utils')
-rw-r--r-- | packages/website/ts/utils/utils.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts index afe159beb..53d60b3ce 100644 --- a/packages/website/ts/utils/utils.ts +++ b/packages/website/ts/utils/utils.ts @@ -5,7 +5,7 @@ import { BigNumber } from '@0xproject/utils'; import deepEqual = require('deep-equal'); import * as _ from 'lodash'; import * as moment from 'moment'; -import { Order, Providers, ScreenWidths, Side, SideToAssetToken, Token, TokenByAddress } from 'ts/types'; +import { Environments, Order, Providers, ScreenWidths, Side, SideToAssetToken, Token, TokenByAddress } from 'ts/types'; import { configs } from 'ts/utils/configs'; import { constants } from 'ts/utils/constants'; import * as u2f from 'ts/vendor/u2f_api'; @@ -292,4 +292,10 @@ export const utils = { } return parsedProviderName; }, + isDevelopment() { + return configs.ENVIRONMENT === Environments.DEVELOPMENT; + }, + isStaging() { + return _.includes(window.location.href, configs.DOMAIN_STAGING); + }, }; |