Skip to content

Commit 48003d4

Browse files
committed
Simplify Segment.io exclusion
1 parent 9dc2671 commit 48003d4

File tree

1 file changed

+2
-4
lines changed
  • packages/browser/src/plugins/ajs-destination

1 file changed

+2
-4
lines changed

packages/browser/src/plugins/ajs-destination/utils.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const isInstallableIntegration = (
1515
// checking for iterable is a quick fix we need in place to prevent
1616
// errors showing Iterable as a failed destiantion. Ideally, we should
1717
// fix the Iterable metadata instead, but that's a longer process.
18-
return (deviceMode || name === 'Segment.io') && name !== 'Iterable'
18+
return name.startsWith('Segment') && name !== 'Iterable' && deviceMode
1919
}
2020

2121
export const isDisabledIntegration = (
@@ -27,8 +27,6 @@ export const isDisabledIntegration = (
2727
globalIntegrations[integrationName] === undefined
2828

2929
return (
30-
integrationName.startsWith('Segment') ||
31-
globalIntegrations[integrationName] === false ||
32-
allDisableAndNotDefined
30+
globalIntegrations[integrationName] === false || allDisableAndNotDefined
3331
)
3432
}

0 commit comments

Comments
 (0)