File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
packages/browser/src/plugins/ajs-destination Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 1- import { IntegrationsOptions } from '@segment/analytics-core'
21import { RemoteIntegrationSettings } from '../..'
2+ import { IntegrationsInitOptions } from '../../browser/settings'
33
44export const isInstallableIntegration = (
55 name : string ,
@@ -20,13 +20,10 @@ export const isInstallableIntegration = (
2020
2121export const isDisabledIntegration = (
2222 integrationName : string ,
23- globalIntegrations : IntegrationsOptions
23+ integrations : IntegrationsInitOptions
2424) => {
2525 const allDisableAndNotDefined =
26- globalIntegrations . All === false &&
27- globalIntegrations [ integrationName ] === undefined
26+ integrations . All === false && integrations [ integrationName ] === undefined
2827
29- return (
30- globalIntegrations [ integrationName ] === false || allDisableAndNotDefined
31- )
28+ return integrations [ integrationName ] === false || allDisableAndNotDefined
3229}
You can’t perform that action at this time.
0 commit comments