Default to mobile app promotion

This commit is contained in:
Lyubo Marinov 2017-02-27 23:34:34 -06:00
parent d371a3d5fd
commit 743d12e326
2 changed files with 14 additions and 3 deletions

View File

@ -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
}; };

View File

@ -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);
} }