Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

functions.js 570B

123456789101112131415161718192021
  1. // @flow
  2. import { toState } from '../base/redux';
  3. /**
  4. * Checks whether rtcstats is enabled or not.
  5. *
  6. * @param {Function|Object} stateful - The redux store or {@code getState} function.
  7. * @returns {boolean}
  8. */
  9. export function isRtcstatsEnabled(stateful: Function | Object) {
  10. // TODO: Remove when rtcstats is fully cimpatible with mobile.
  11. if (navigator.product === 'ReactNative') {
  12. return false;
  13. }
  14. const state = toState(stateful);
  15. const config = state['features/base/config'];
  16. return config?.analytics?.rtcstatsEnabled ?? false;
  17. }