浏览代码

Default to mobile app promotion

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

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

正在加载...
取消
保存