Introduce ANALYTICS_ENABLED constant

This commit is contained in:
Steve Klebanoff
2018-11-15 11:28:44 -08:00
parent 0a38bf8fd6
commit 450814ad80
2 changed files with 7 additions and 0 deletions

View File

@@ -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 {