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 44d75b5253
commit e68be6fa84
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);