aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-16 03:28:44 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-16 03:28:44 +0800
commit450814ad80bb22332579e8ba54b58e1c06f34f71 (patch)
treed21c1244a3ef02f31eb0e7f5f55447c695fda511 /packages/instant/src/util
parent0a38bf8fd6d2b98a84671a152cc380458d2e5e7e (diff)
downloaddexon-sol-tools-450814ad80bb22332579e8ba54b58e1c06f34f71.tar
dexon-sol-tools-450814ad80bb22332579e8ba54b58e1c06f34f71.tar.gz
dexon-sol-tools-450814ad80bb22332579e8ba54b58e1c06f34f71.tar.bz2
dexon-sol-tools-450814ad80bb22332579e8ba54b58e1c06f34f71.tar.lz
dexon-sol-tools-450814ad80bb22332579e8ba54b58e1c06f34f71.tar.xz
dexon-sol-tools-450814ad80bb22332579e8ba54b58e1c06f34f71.tar.zst
dexon-sol-tools-450814ad80bb22332579e8ba54b58e1c06f34f71.zip
Introduce ANALYTICS_ENABLED constant
Diffstat (limited to 'packages/instant/src/util')
-rw-r--r--packages/instant/src/util/analytics.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/instant/src/util/analytics.ts b/packages/instant/src/util/analytics.ts
index 3e2a996cf..6b6115abe 100644
--- a/packages/instant/src/util/analytics.ts
+++ b/packages/instant/src/util/analytics.ts
@@ -1,9 +1,15 @@
import { ObjectMap } from '@0x/types';
import { logUtils } from '@0x/utils';
+import { ANALYTICS_ENABLED } from '../constants';
+
import { HeapAnalytics, heapUtil } from './heap';
const evaluteHeapCall = (heapFunctionCall: (heap: HeapAnalytics) => void): void => {
+ if (!ANALYTICS_ENABLED) {
+ return;
+ }
+
const curHeap = heapUtil.getHeap();
if (curHeap) {
try {