Introduce ANALYTICS_ENABLED constant
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user