Default to mobile app promotion

pull/1349/head jitsi-meet_1791
Lyubo Marinov 8 years ago
parent d371a3d5fd
commit 743d12e326
  1. 11
      interface_config.js
  2. 6
      react/features/base/util/interceptComponent.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
};

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

Loading…
Cancel
Save