Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Allows the URLProcessor to replace a property even if its type changes.

Boris Grozevae793726cab2
diff --git a/modules/config/Util.js b/modules/config/Util.js
index 3b45b9959f..1488f5ccb2 100644
--- a/modules/config/Util.js
+++ b/modules/config/Util.js
@@ -18,9 +18,9 @@ var ConfigUtil = {
* }
*/
overrideConfigJSON: function (config, interfaceConfig, newConfig) {
- for (var configRoot in newConfig) {
-
- var confObj = null;
+ var configRoot, key, value, confObj;
+ for (configRoot in newConfig) {
+ confObj = null;
if (configRoot == "config") {
confObj = config;
} else if (configRoot == "interfaceConfig") {
@@ -29,15 +29,11 @@ var ConfigUtil = {
continue;
}
- for (var key in newConfig[configRoot]) {
- var value = newConfig[configRoot][key];
- if (confObj[key] && typeof confObj[key] !== typeof value)
- {
- console.warn(
- "The type of " + key +
- " is wrong. That parameter won't be updated in: ",
- confObj);
- continue;
+ for (key in newConfig[configRoot]) {
+ value = newConfig[configRoot][key];
+ if (confObj[key] && typeof confObj[key] !== typeof value) {
+ console.log("Overriding a " + configRoot +
+ " property with a property of different type.");
}
console.info("Overriding " + key + " with: " + value);
confObj[key] = value;