File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/browser/src/plugins/ajs-destination Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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
2121export 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}
You can’t perform that action at this time.
0 commit comments