Преглед изворни кода

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

* doc: Clarify documentation.

* feat: Whitelist all of videoQualitty, not just "persist".
master
bgrozev пре 3 година
родитељ
комит
5344e2bfae
No account linked to committer's email address
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…
Откажи
Сачувај