@posthog/rrweb 0.0.47 → 0.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.
- package/dist/rrweb.cjs +15 -2
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +15 -2
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +15 -2
- package/dist/rrweb.umd.cjs.map +2 -2
- package/dist/rrweb.umd.min.cjs +15 -15
- package/dist/rrweb.umd.min.cjs.map +3 -3
- package/package.json +5 -5
package/dist/rrweb.umd.cjs
CHANGED
|
@@ -1541,7 +1541,10 @@ const pseudoClassPlugin = {
|
|
|
1541
1541
|
fixed.push(rule2);
|
|
1542
1542
|
rule2.selectors.forEach(function(selector) {
|
|
1543
1543
|
if (selector.includes(":hover")) {
|
|
1544
|
-
|
|
1544
|
+
const newSelector = selector.replace(new RegExp("(?<!\\\\):hover", "g"), ".\\:hover");
|
|
1545
|
+
if (newSelector !== selector) {
|
|
1546
|
+
rule2.selector += ",\n" + newSelector;
|
|
1547
|
+
}
|
|
1545
1548
|
}
|
|
1546
1549
|
});
|
|
1547
1550
|
}
|
|
@@ -15296,7 +15299,17 @@ function record(options = {}) {
|
|
|
15296
15299
|
);
|
|
15297
15300
|
}
|
|
15298
15301
|
return () => {
|
|
15299
|
-
handlers.forEach((h) =>
|
|
15302
|
+
handlers.forEach((h) => {
|
|
15303
|
+
try {
|
|
15304
|
+
h();
|
|
15305
|
+
} catch (error) {
|
|
15306
|
+
const msg = String(error);
|
|
15307
|
+
const isCrossOriginFrameError = msg.includes("from accessing a cross-origin frame") && msg.includes("Blocked a frame with origin");
|
|
15308
|
+
if (!isCrossOriginFrameError) {
|
|
15309
|
+
throw error;
|
|
15310
|
+
}
|
|
15311
|
+
}
|
|
15312
|
+
});
|
|
15300
15313
|
processedNodeManager.destroy();
|
|
15301
15314
|
iframeManager.removeLoadListener();
|
|
15302
15315
|
iframeManager.destroy();
|