瀏覽代碼

feat: Whitelist all of videoQualitty, not just "persist". (#10133)

* doc: Clarify documentation.

* feat: Whitelist all of videoQualitty, not just "persist".
master
bgrozev 4 年之前
父節點
當前提交
5344e2bfae
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 4 行新增3 行删除
  1. 4
    3
      react/features/base/config/configWhitelist.js

+ 4
- 3
react/features/base/config/configWhitelist.js 查看文件

@@ -2,8 +2,9 @@ import extraConfigWhitelist from './extraConfigWhitelist';
2 2
 
3 3
 /**
4 4
  * The config keys to whitelist, the keys that can be overridden.
5
- * Currently we can only whitelist the first part of the properties, like
6
- * 'p2p.enabled' we whitelist all p2p options.
5
+ * Whitelisting a key allows all properties under that key to be overridden.
6
+ * For example whitelisting 'p2p' allows 'p2p.enabled' to be overridden, and
7
+ * overriding 'p2p.enabled' does not modify any other keys under 'p2p'.
7 8
  * The whitelist is used only for config.js.
8 9
  *
9 10
  * @type Array
@@ -193,7 +194,7 @@ export default [
193 194
     'toolbarConfig',
194 195
     'useHostPageLocalStorage',
195 196
     'useTurnUdp',
196
-    'videoQuality.persist',
197
+    'videoQuality',
197 198
     'webrtcIceTcpDisable',
198 199
     'webrtcIceUdpDisable'
199 200
 ].concat(extraConfigWhitelist);

Loading…
取消
儲存