@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.
- package/dist/collectors/heatmap.d.ts.map +1 -1
- package/dist/devskin.cjs.js +3 -1
- package/dist/devskin.cjs.js.map +1 -1
- package/dist/devskin.esm.js +3 -1
- package/dist/devskin.esm.js.map +1 -1
- package/dist/devskin.umd.js +3 -1
- package/dist/devskin.umd.js.map +1 -1
- package/dist/devskin.umd.min.js +1 -1
- package/dist/devskin.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/devskin.umd.js
CHANGED
|
@@ -1031,11 +1031,13 @@
|
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
1033
|
getElementSelector(element) {
|
|
1034
|
+
var _a;
|
|
1034
1035
|
if (element.id) {
|
|
1035
1036
|
return `#${element.id}`;
|
|
1036
1037
|
}
|
|
1037
1038
|
if (element.className) {
|
|
1038
|
-
const
|
|
1039
|
+
const classStr = typeof element.className === 'string' ? element.className : ((_a = element.className) === null || _a === void 0 ? void 0 : _a.baseVal) || '';
|
|
1040
|
+
const classes = classStr.split(' ').filter((c) => c);
|
|
1039
1041
|
if (classes.length > 0) {
|
|
1040
1042
|
return `${element.tagName.toLowerCase()}.${classes.join('.')}`;
|
|
1041
1043
|
}
|