Browse Source

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

* doc: Clarify documentation.

* feat: Whitelist all of videoQualitty, not just "persist".
master
bgrozev 4 years ago
parent
commit
5344e2bfae
No account linked to committer's email address
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      react/features/base/config/configWhitelist.js

+ 4
- 3
react/features/base/config/configWhitelist.js View File

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);

Loading…
Cancel
Save