You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

environment.js 731B

12345678910111213141516171819202122232425
  1. // @flow
  2. import JitsiMeetJS from '../lib-jitsi-meet';
  3. import { Platform } from '../react';
  4. import { isBlacklistedEnvironment } from './isBlacklistedEnvironment';
  5. /**
  6. * Returns whether or not the current browser should allow the app to display.
  7. *
  8. * @returns {boolean}
  9. */
  10. export function isSupportedBrowser() {
  11. if (navigator.product === 'ReactNative' || isBlacklistedEnvironment()) {
  12. return false;
  13. }
  14. // We are intentionally allow mobile browsers because:
  15. // - the WelcomePage is mobile ready;
  16. // - if the URL points to a conference then deep-linking will take
  17. // care of it.
  18. return Platform.OS === 'android'
  19. || Platform.OS === 'ios'
  20. || JitsiMeetJS.isWebRtcSupported();
  21. }