analytics: fix enabling analytics when disableThirdPartyRequests is set
This commit is contained in:
parent
c1fb276937
commit
1bbb937d9d
|
@ -39,7 +39,7 @@ export function createLocalTrack(type: string, deviceId: string) {
|
||||||
export function isAnalyticsEnabled(stateful: Function | Object) {
|
export function isAnalyticsEnabled(stateful: Function | Object) {
|
||||||
const { disableThirdPartyRequests, analytics = {} } = toState(stateful)['features/base/config'];
|
const { disableThirdPartyRequests, analytics = {} } = toState(stateful)['features/base/config'];
|
||||||
|
|
||||||
return !disableThirdPartyRequests && !analytics.disabled;
|
return !(disableThirdPartyRequests || analytics.disabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue