From 28c98645eca45f6fb32875ed51dc54b77a93dcd6 Mon Sep 17 00:00:00 2001 From: ItsSudip Date: Tue, 19 Mar 2024 20:29:34 +0530 Subject: [PATCH] chore: remove duplicate config named eventWhiteList --- .../src/integrations/TVSquared/browser.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/analytics-js-integrations/src/integrations/TVSquared/browser.js b/packages/analytics-js-integrations/src/integrations/TVSquared/browser.js index 9790ef4a1..f003ebcf6 100644 --- a/packages/analytics-js-integrations/src/integrations/TVSquared/browser.js +++ b/packages/analytics-js-integrations/src/integrations/TVSquared/browser.js @@ -21,7 +21,6 @@ class TVSquared { this.analytics = analytics; this.brandId = config.brandId; this.clientId = config.clientId; - this.eventWhiteList = config.eventWhiteList || []; this.customMetrics = config.customMetrics || []; this.name = NAME; ({ @@ -61,16 +60,6 @@ class TVSquared { const { message } = rudderElement; const { event, userId, anonymousId } = message; - const whitelistEvents = this.eventWhiteList.filter(wl => wl.event !== ''); - - const isEventInWhiteList = whitelistEvents.some( - whitelistEvent => whitelistEvent.event.toUpperCase() === event.toUpperCase(), - ); - - if (!isEventInWhiteList && whitelistEvents.length > 0) { - return; - } - const session = { user: userId || anonymousId || '' }; const action = getAction(message, this.customMetrics);