analytics: fix enabling analytics when disableThirdPartyRequests is set

This commit is contained in:
Saúl Ibarra Corretgé 2020-03-28 20:23:28 +01:00 committed by Saúl Ibarra Corretgé
parent c1fb276937
commit 1bbb937d9d
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export function createLocalTrack(type: string, deviceId: string) {
export function isAnalyticsEnabled(stateful: Function | Object) {
const { disableThirdPartyRequests, analytics = {} } = toState(stateful)['features/base/config'];
return !disableThirdPartyRequests && !analytics.disabled;
return !(disableThirdPartyRequests || analytics.disabled);
}
/**