diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-06 01:45:34 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-06 01:45:34 +0800 |
commit | 9eff85741617d9d64c674e41a344e42325153292 (patch) | |
tree | 96b3d5c11f0bc969c590aecad09aaafdb386d7cd /packages/instant/src/util/analytics.ts | |
parent | 37dbb4d06f959978a343d870bcf1714b0142c274 (diff) | |
download | dexon-sol-tools-9eff85741617d9d64c674e41a344e42325153292.tar dexon-sol-tools-9eff85741617d9d64c674e41a344e42325153292.tar.gz dexon-sol-tools-9eff85741617d9d64c674e41a344e42325153292.tar.bz2 dexon-sol-tools-9eff85741617d9d64c674e41a344e42325153292.tar.lz dexon-sol-tools-9eff85741617d9d64c674e41a344e42325153292.tar.xz dexon-sol-tools-9eff85741617d9d64c674e41a344e42325153292.tar.zst dexon-sol-tools-9eff85741617d9d64c674e41a344e42325153292.zip |
Only include localhost in host domains if in development mode
Diffstat (limited to 'packages/instant/src/util/analytics.ts')
-rw-r--r-- | packages/instant/src/util/analytics.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/util/analytics.ts b/packages/instant/src/util/analytics.ts index 6da37bedb..6da52db16 100644 --- a/packages/instant/src/util/analytics.ts +++ b/packages/instant/src/util/analytics.ts @@ -2,7 +2,7 @@ import { BuyQuote } from '@0x/asset-buyer'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; -import { GIT_SHA, HEAP_ENABLED, INSTANT_DISCHARGE_TARGET, NPM_PACKAGE_VERSION } from '../constants'; +import { GIT_SHA, HEAP_ENABLED, INSTANT_DISCHARGE_TARGET, NODE_ENV, NPM_PACKAGE_VERSION } from '../constants'; import { AffiliateInfo, Asset, @@ -156,7 +156,7 @@ export const analytics = { affiliateFeePercent, selectedAssetName: selectedAsset ? selectedAsset.metaData.name : 'none', selectedAssetData: selectedAsset ? selectedAsset.assetData : 'none', - instantEnvironment: INSTANT_DISCHARGE_TARGET || `Local ${process.env.NODE_ENV}`, + instantEnvironment: INSTANT_DISCHARGE_TARGET || `Local ${NODE_ENV}`, }; return eventOptions; }, |