mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
call callback func in segmentNoop.track (#9682)
This commit is contained in:
parent
6038a1f3f5
commit
8c87c46601
@ -12,8 +12,10 @@ const flushAt = 1
|
||||
export const METAMETRICS_ANONYMOUS_ID = '0x0000000000000000'
|
||||
|
||||
const segmentNoop = {
|
||||
track () {
|
||||
// noop
|
||||
track (_, callback = () => undefined) {
|
||||
// Need to call the callback so that environments without a segment id still
|
||||
// resolve the promise from trackMetaMetricsEvent
|
||||
return callback()
|
||||
},
|
||||
page () {
|
||||
// noop
|
||||
|
Loading…
Reference in New Issue
Block a user