You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
521 B
15 lines
521 B
5 years ago
|
import { getBackgroundMetaMetricState } from '../../../ui/app/selectors'
|
||
5 years ago
|
import { sendMetaMetricsEvent } from '../../../ui/app/helpers/utils/metametrics.util'
|
||
6 years ago
|
|
||
4 years ago
|
export default function backgroundMetaMetricsEvent (metaMaskState, eventData) {
|
||
5 years ago
|
const stateEventData = getBackgroundMetaMetricState({ metamask: metaMaskState })
|
||
6 years ago
|
if (stateEventData.participateInMetaMetrics) {
|
||
5 years ago
|
sendMetaMetricsEvent({
|
||
|
...stateEventData,
|
||
|
...eventData,
|
||
4 years ago
|
category: 'Background',
|
||
4 years ago
|
currentPath: '/background',
|
||
5 years ago
|
})
|
||
6 years ago
|
}
|
||
|
}
|