chore(plugins/no-track): make AnalyticsActionHandlers patch more readable
This commit is contained in:
parent
c640a0e5a0
commit
00e9794baf
1 changed files with 5 additions and 7 deletions
|
|
@ -113,13 +113,11 @@ registerPlugin(
|
|||
instead(AnalyticsUtils.default, 'track', noop)
|
||||
instead(AnalyticsUtils, 'trackNetworkAction', noop)
|
||||
|
||||
for (const key in AnalyticsUtils.default
|
||||
.AnalyticsActionHandlers)
|
||||
instead(
|
||||
AnalyticsUtils.default.AnalyticsActionHandlers,
|
||||
key,
|
||||
noop,
|
||||
)
|
||||
const { AnalyticsActionHandlers: handlers } =
|
||||
AnalyticsUtils.default
|
||||
|
||||
for (const key of Object.keys(handlers))
|
||||
instead(handlers, key, noop)
|
||||
},
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue