@devskin/browser-sdk 1.0.48 → 1.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1029,7 +1029,8 @@ class HeatmapCollector {
1029
1029
  return `#${element.id}`;
1030
1030
  }
1031
1031
  if (element.className) {
1032
- const classes = element.className.split(' ').filter(c => c);
1032
+ const classStr = typeof element.className === 'string' ? element.className : element.className.baseVal || '';
1033
+ const classes = classStr.split(' ').filter((c) => c);
1033
1034
  if (classes.length > 0) {
1034
1035
  return `${element.tagName.toLowerCase()}.${classes.join('.')}`;
1035
1036
  }