assign isn’t supported, so do a for loop

This commit is contained in:
Aaron van Meerten 2017-05-23 14:59:02 -05:00
parent 36d40cdec9
commit beec60be47
1 changed files with 4 additions and 2 deletions

View File

@ -123,8 +123,10 @@ class Analytics {
permanentProperties.group = group;
}
if (window.jitsiAnalyticsPermanentProperties) {
permanentProperties.assign(
window.jitsiAnalyticsPermanentProperties);
for (var key in window.jitsiAnalyticsPermanentProperties) {
permanentProperties[key]
= window.jitsiAnalyticsPermanentProperties[key];
}
}
analytics.addPermanentProperties(permanentProperties);