diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-01 06:16:02 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-01 06:16:02 +0800 |
commit | d9b4b0e0f370bcb2f043f5f619a7d68c63a0f2d7 (patch) | |
tree | 94b9cdf488dda700b512ecdf1c576df092f39841 /packages/instant/src/index.umd.ts | |
parent | c342940b5d03d8496639feab9f2b305fe86c7240 (diff) | |
parent | 94d81bd5621535ca3a02ceb690ec963036b0ec6b (diff) | |
download | dexon-sol-tools-d9b4b0e0f370bcb2f043f5f619a7d68c63a0f2d7.tar dexon-sol-tools-d9b4b0e0f370bcb2f043f5f619a7d68c63a0f2d7.tar.gz dexon-sol-tools-d9b4b0e0f370bcb2f043f5f619a7d68c63a0f2d7.tar.bz2 dexon-sol-tools-d9b4b0e0f370bcb2f043f5f619a7d68c63a0f2d7.tar.lz dexon-sol-tools-d9b4b0e0f370bcb2f043f5f619a7d68c63a0f2d7.tar.xz dexon-sol-tools-d9b4b0e0f370bcb2f043f5f619a7d68c63a0f2d7.tar.zst dexon-sol-tools-d9b4b0e0f370bcb2f043f5f619a7d68c63a0f2d7.zip |
Merge branch 'development' into feature/instant/rollbar-env
Diffstat (limited to 'packages/instant/src/index.umd.ts')
-rw-r--r-- | packages/instant/src/index.umd.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/instant/src/index.umd.ts b/packages/instant/src/index.umd.ts index 95080f829..449453b56 100644 --- a/packages/instant/src/index.umd.ts +++ b/packages/instant/src/index.umd.ts @@ -4,6 +4,7 @@ import * as ReactDOM from 'react-dom'; import { DEFAULT_ZERO_EX_CONTAINER_SELECTOR, INJECTED_DIV_CLASS, INJECTED_DIV_ID } from './constants'; import { ZeroExInstantOverlay, ZeroExInstantOverlayProps } from './index'; +import { analytics } from './util/analytics'; import { assert } from './util/assert'; import { util } from './util/util'; @@ -57,6 +58,7 @@ const renderInstant = (config: ZeroExInstantConfig, selector: string) => { injectedDiv.setAttribute('class', INJECTED_DIV_CLASS); appendTo.appendChild(injectedDiv); const closeInstant = () => { + analytics.trackInstantClosed(); if (!_.isUndefined(config.onClose)) { config.onClose(); } |