Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
123456789101112131415161718192021 |
- // @flow
-
- import { toState } from '../base/redux';
-
- /**
- * Checks whether rtcstats is enabled or not.
- *
- * @param {Function|Object} stateful - The redux store or {@code getState} function.
- * @returns {boolean}
- */
- export function isRtcstatsEnabled(stateful: Function | Object) {
- // TODO: Remove when rtcstats is fully cimpatible with mobile.
- if (navigator.product === 'ReactNative') {
- return false;
- }
-
- const state = toState(stateful);
- const config = state['features/base/config'];
-
- return config?.analytics?.rtcstatsEnabled ?? false;
- }
|