Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Jan 21, 2025
1 parent 3534080 commit 4f44fa4
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/browser/src/plugins/ajs-destination/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IntegrationsOptions } from '@segment/analytics-core'
import { RemoteIntegrationSettings } from '../..'
import { IntegrationsInitOptions } from '../../browser/settings'

export const isInstallableIntegration = (
name: string,
Expand All @@ -20,13 +20,10 @@ export const isInstallableIntegration = (

export const isDisabledIntegration = (
integrationName: string,
globalIntegrations: IntegrationsOptions
integrations: IntegrationsInitOptions
) => {
const allDisableAndNotDefined =
globalIntegrations.All === false &&
globalIntegrations[integrationName] === undefined
integrations.All === false && integrations[integrationName] === undefined

return (
globalIntegrations[integrationName] === false || allDisableAndNotDefined
)
return integrations[integrationName] === false || allDisableAndNotDefined
}

0 comments on commit 4f44fa4

Please sign in to comment.