Skip to content

Commit

Permalink
Simplify Segment.io exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
zikaari committed Nov 30, 2022
1 parent 9dc2671 commit e00e4ee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/browser/src/plugins/ajs-destination/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const isInstallableIntegration = (
// checking for iterable is a quick fix we need in place to prevent
// errors showing Iterable as a failed destiantion. Ideally, we should
// fix the Iterable metadata instead, but that's a longer process.
return (deviceMode || name === 'Segment.io') && name !== 'Iterable'
return !name.startsWith('Segment') && name !== 'Iterable' && deviceMode
}

export const isDisabledIntegration = (
Expand All @@ -27,8 +27,6 @@ export const isDisabledIntegration = (
globalIntegrations[integrationName] === undefined

return (
integrationName.startsWith('Segment') ||
globalIntegrations[integrationName] === false ||
allDisableAndNotDefined
globalIntegrations[integrationName] === false || allDisableAndNotDefined
)
}

0 comments on commit e00e4ee

Please sign in to comment.