Ver código fonte

Default to mobile app promotion

j8
Lyubo Marinov 8 anos atrás
pai
commit
743d12e326

+ 9
- 2
interface_config.js Ver arquivo

@@ -73,6 +73,13 @@ var interfaceConfig = { // eslint-disable-line no-unused-vars
73 73
     REMOTE_THUMBNAIL_RATIO: 1, //1:1
74 74
     // Documentation reference for the live streaming feature.
75 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 Ver arquivo

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

Carregando…
Cancelar
Salvar