瀏覽代碼

Default to mobile app promotion

master
Lyubo Marinov 8 年之前
父節點
當前提交
743d12e326
共有 2 個檔案被更改,包括 14 行新增3 行删除
  1. 9
    2
      interface_config.js
  2. 5
    1
      react/features/base/util/interceptComponent.js

+ 9
- 2
interface_config.js 查看文件

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 查看文件

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…
取消
儲存