@posthog/rrweb 0.0.23 → 0.0.25
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 +11 -4
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +11 -4
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +11 -4
- package/dist/rrweb.umd.cjs.map +2 -2
- package/dist/rrweb.umd.min.cjs +13 -13
- package/dist/rrweb.umd.min.cjs.map +2 -2
- package/package.json +1 -1
package/dist/rrweb.umd.cjs
CHANGED
|
@@ -284,8 +284,8 @@ function stringifyStylesheet(s2) {
|
|
|
284
284
|
return null;
|
|
285
285
|
}
|
|
286
286
|
let sheetHref = s2.href;
|
|
287
|
-
if (!sheetHref && s2.ownerNode
|
|
288
|
-
sheetHref = s2.ownerNode.
|
|
287
|
+
if (!sheetHref && s2.ownerNode) {
|
|
288
|
+
sheetHref = s2.ownerNode.baseURI;
|
|
289
289
|
}
|
|
290
290
|
const stringifiedRules = Array.from(
|
|
291
291
|
rules2,
|
|
@@ -5686,6 +5686,12 @@ function buildNodeWithSN(n2, options) {
|
|
|
5686
5686
|
} else {
|
|
5687
5687
|
node2.appendChild(childNode);
|
|
5688
5688
|
}
|
|
5689
|
+
} else if (n2.type === NodeType$1$1.Document && childN.type === NodeType$1$1.DocumentType) {
|
|
5690
|
+
if (node2.firstChild && node2.firstChild.nodeType === 1) {
|
|
5691
|
+
node2.insertBefore(childNode, node2.firstChild);
|
|
5692
|
+
} else {
|
|
5693
|
+
node2.appendChild(childNode);
|
|
5694
|
+
}
|
|
5689
5695
|
} else {
|
|
5690
5696
|
node2.appendChild(childNode);
|
|
5691
5697
|
}
|
|
@@ -17466,12 +17472,13 @@ class Replayer {
|
|
|
17466
17472
|
}
|
|
17467
17473
|
}
|
|
17468
17474
|
applyStyleDeclaration(data, styleSheet) {
|
|
17475
|
+
var _a2, _b;
|
|
17469
17476
|
if (data.set) {
|
|
17470
17477
|
const rule2 = getNestedRule(
|
|
17471
17478
|
styleSheet.rules,
|
|
17472
17479
|
data.index
|
|
17473
17480
|
);
|
|
17474
|
-
rule2.style.setProperty(
|
|
17481
|
+
(_a2 = rule2 == null ? void 0 : rule2.style) == null ? void 0 : _a2.setProperty(
|
|
17475
17482
|
data.set.property,
|
|
17476
17483
|
data.set.value,
|
|
17477
17484
|
data.set.priority
|
|
@@ -17482,7 +17489,7 @@ class Replayer {
|
|
|
17482
17489
|
styleSheet.rules,
|
|
17483
17490
|
data.index
|
|
17484
17491
|
);
|
|
17485
|
-
rule2.style.removeProperty(data.remove.property);
|
|
17492
|
+
(_b = rule2 == null ? void 0 : rule2.style) == null ? void 0 : _b.removeProperty(data.remove.property);
|
|
17486
17493
|
}
|
|
17487
17494
|
}
|
|
17488
17495
|
applyAdoptedStyleSheet(data) {
|