Skip to content

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

fix: adds a hasOwnProperty check, uses "let".

Boris Grozev4840db67caef
diff --git a/modules/analytics/analytics.js b/modules/analytics/analytics.js
index 2a495052f9..25007e4102 100644
--- a/modules/analytics/analytics.js
+++ b/modules/analytics/analytics.js
@@ -125,8 +125,11 @@ class Analytics {
// optionally include local deployment information based on
// the contents of window.config.deploymentInfo
if (config.deploymentInfo) {
- for (var key in config.deploymentInfo) {
- permanentProperties[key] = config.deploymentInfo[key];
+ for (let key in config.deploymentInfo) {
+ if (config.deploymentInfo.hasOwnProperty(key)) {
+ permanentProperties[key]
+ = config.deploymentInfo[key];
+ }
}
}