Default to mobile app promotion
This commit is contained in:
parent
d371a3d5fd
commit
743d12e326
|
@ -73,6 +73,13 @@ var interfaceConfig = { // eslint-disable-line no-unused-vars
|
||||||
REMOTE_THUMBNAIL_RATIO: 1, //1:1
|
REMOTE_THUMBNAIL_RATIO: 1, //1:1
|
||||||
// Documentation reference for the live streaming feature.
|
// Documentation reference for the live streaming feature.
|
||||||
LIVE_STREAMING_HELP_LINK: "https://jitsi.org/live",
|
LIVE_STREAMING_HELP_LINK: "https://jitsi.org/live",
|
||||||
// Enabling mobile landing page with the link to mobile app.
|
|
||||||
MOBILE_APP_ENABLED: true
|
/**
|
||||||
|
* Whether the mobile app Jitsi Meet is to be promoted to participants
|
||||||
|
* attempting to join a conference in a mobile Web browser. If undefined,
|
||||||
|
* default to true.
|
||||||
|
*
|
||||||
|
* @type {boolean}
|
||||||
|
*/
|
||||||
|
MOBILE_APP_PROMO: true
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,8 +37,12 @@ const _RULES = [
|
||||||
const OS = Platform.OS;
|
const OS = Platform.OS;
|
||||||
|
|
||||||
if (OS === 'android' || OS === 'ios') {
|
if (OS === 'android' || OS === 'ios') {
|
||||||
|
const mobileAppPromo
|
||||||
|
= typeof interfaceConfig === 'object'
|
||||||
|
&& interfaceConfig.MOBILE_APP_PROMO;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
interfaceConfig.MOBILE_APP_ENABLED
|
typeof mobileAppPromo === 'undefined' || Boolean(mobileAppPromo)
|
||||||
? UnsupportedMobileBrowser
|
? UnsupportedMobileBrowser
|
||||||
: NoMobileApp);
|
: NoMobileApp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue