浏览代码

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

* doc: Clarify documentation.

* feat: Whitelist all of videoQualitty, not just "persist".
master
bgrozev 3 年前
父节点
当前提交
5344e2bfae
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4
    3
      react/features/base/config/configWhitelist.js

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

2
 
2
 
3
 /**
3
 /**
4
  * The config keys to whitelist, the keys that can be overridden.
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
  * The whitelist is used only for config.js.
8
  * The whitelist is used only for config.js.
8
  *
9
  *
9
  * @type Array
10
  * @type Array
193
     'toolbarConfig',
194
     'toolbarConfig',
194
     'useHostPageLocalStorage',
195
     'useHostPageLocalStorage',
195
     'useTurnUdp',
196
     'useTurnUdp',
196
-    'videoQuality.persist',
197
+    'videoQuality',
197
     'webrtcIceTcpDisable',
198
     'webrtcIceTcpDisable',
198
     'webrtcIceUdpDisable'
199
     'webrtcIceUdpDisable'
199
 ].concat(extraConfigWhitelist);
200
 ].concat(extraConfigWhitelist);

正在加载...
取消
保存