Browse Source

Default to mobile app promotion

j8
Lyubo Marinov 8 years ago
parent
commit
743d12e326
2 changed files with 14 additions and 3 deletions
  1. 9
    2
      interface_config.js
  2. 5
    1
      react/features/base/util/interceptComponent.js

+ 9
- 2
interface_config.js View File

73
     REMOTE_THUMBNAIL_RATIO: 1, //1:1
73
     REMOTE_THUMBNAIL_RATIO: 1, //1:1
74
     // Documentation reference for the live streaming feature.
74
     // Documentation reference for the live streaming feature.
75
     LIVE_STREAMING_HELP_LINK: "https://jitsi.org/live",
75
     LIVE_STREAMING_HELP_LINK: "https://jitsi.org/live",
76
-    // Enabling mobile landing page with the link to mobile app.
77
-    MOBILE_APP_ENABLED: true
76
+
77
+    /**
78
+     * Whether the mobile app Jitsi Meet is to be promoted to participants
79
+     * attempting to join a conference in a mobile Web browser. If undefined,
80
+     * default to true.
81
+     *
82
+     * @type {boolean}
83
+     */
84
+    MOBILE_APP_PROMO: true
78
 };
85
 };

+ 5
- 1
react/features/base/util/interceptComponent.js View File

37
         const OS = Platform.OS;
37
         const OS = Platform.OS;
38
 
38
 
39
         if (OS === 'android' || OS === 'ios') {
39
         if (OS === 'android' || OS === 'ios') {
40
+            const mobileAppPromo
41
+                = typeof interfaceConfig === 'object'
42
+                    && interfaceConfig.MOBILE_APP_PROMO;
43
+
40
             return (
44
             return (
41
-                interfaceConfig.MOBILE_APP_ENABLED
45
+                typeof mobileAppPromo === 'undefined' || Boolean(mobileAppPromo)
42
                     ? UnsupportedMobileBrowser
46
                     ? UnsupportedMobileBrowser
43
                     : NoMobileApp);
47
                     : NoMobileApp);
44
         }
48
         }

Loading…
Cancel
Save