mirror of https://github.com/jitsi/jitsi-meet
parent
e47d2d13ce
commit
cf23045f8d
@ -0,0 +1,25 @@ |
||||
// @flow
|
||||
|
||||
import JitsiMeetJS from '../lib-jitsi-meet'; |
||||
import { Platform } from '../react'; |
||||
|
||||
import { isBlacklistedEnvironment } from './isBlacklistedEnvironment'; |
||||
|
||||
/** |
||||
* Returns whether or not the current browser should allow the app to display. |
||||
* |
||||
* @returns {boolean} |
||||
*/ |
||||
export function isSupportedBrowser() { |
||||
if (navigator.product === 'ReactNative' || isBlacklistedEnvironment()) { |
||||
return false; |
||||
} |
||||
|
||||
// We are intentionally allow mobile browsers because:
|
||||
// - the WelcomePage is mobile ready;
|
||||
// - if the URL points to a conference then deep-linking will take
|
||||
// care of it.
|
||||
return Platform.OS === 'android' |
||||
|| Platform.OS === 'ios' |
||||
|| JitsiMeetJS.isWebRtcSupported(); |
||||
} |
@ -0,0 +1 @@ |
||||
export * from './environment'; |
@ -0,0 +1,11 @@ |
||||
/** |
||||
* Returns whether or not the current browser is supported for showing meeting |
||||
* based on any custom overrides. This file should be overridden with branding |
||||
* as needed to fit deployment needs. |
||||
* |
||||
* @returns {boolean} True the browser is unsupported due to being blacklisted |
||||
* by the logic within this function. |
||||
*/ |
||||
export function isBlacklistedEnvironment() { |
||||
return false; |
||||
} |
Loading…
Reference in new issue