diff --git a/interface_config.js b/interface_config.js index 519b8f6e30..24cd76a422 100644 --- a/interface_config.js +++ b/interface_config.js @@ -73,6 +73,13 @@ var interfaceConfig = { // eslint-disable-line no-unused-vars REMOTE_THUMBNAIL_RATIO: 1, //1:1 // Documentation reference for the live streaming feature. 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 }; diff --git a/react/features/base/util/interceptComponent.js b/react/features/base/util/interceptComponent.js index 3994dd6c9f..860556eefa 100644 --- a/react/features/base/util/interceptComponent.js +++ b/react/features/base/util/interceptComponent.js @@ -37,8 +37,12 @@ const _RULES = [ const OS = Platform.OS; if (OS === 'android' || OS === 'ios') { + const mobileAppPromo + = typeof interfaceConfig === 'object' + && interfaceConfig.MOBILE_APP_PROMO; + return ( - interfaceConfig.MOBILE_APP_ENABLED + typeof mobileAppPromo === 'undefined' || Boolean(mobileAppPromo) ? UnsupportedMobileBrowser : NoMobileApp); }