@devskin/browser-sdk 1.0.48 → 1.0.50

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.
@@ -1025,11 +1025,13 @@ class HeatmapCollector {
1025
1025
  }
1026
1026
  }
1027
1027
  getElementSelector(element) {
1028
+ var _a;
1028
1029
  if (element.id) {
1029
1030
  return `#${element.id}`;
1030
1031
  }
1031
1032
  if (element.className) {
1032
- const classes = element.className.split(' ').filter(c => c);
1033
+ const classStr = typeof element.className === 'string' ? element.className : ((_a = element.className) === null || _a === void 0 ? void 0 : _a.baseVal) || '';
1034
+ const classes = classStr.split(' ').filter((c) => c);
1033
1035
  if (classes.length > 0) {
1034
1036
  return `${element.tagName.toLowerCase()}.${classes.join('.')}`;
1035
1037
  }