@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.cjs
CHANGED
|
@@ -240,8 +240,8 @@ function stringifyStylesheet(s2) {
|
|
|
240
240
|
return null;
|
|
241
241
|
}
|
|
242
242
|
let sheetHref = s2.href;
|
|
243
|
-
if (!sheetHref && s2.ownerNode
|
|
244
|
-
sheetHref = s2.ownerNode.
|
|
243
|
+
if (!sheetHref && s2.ownerNode) {
|
|
244
|
+
sheetHref = s2.ownerNode.baseURI;
|
|
245
245
|
}
|
|
246
246
|
const stringifiedRules = Array.from(
|
|
247
247
|
rules2,
|
|
@@ -5642,6 +5642,12 @@ function buildNodeWithSN(n2, options) {
|
|
|
5642
5642
|
} else {
|
|
5643
5643
|
node2.appendChild(childNode);
|
|
5644
5644
|
}
|
|
5645
|
+
} else if (n2.type === NodeType$1$1.Document && childN.type === NodeType$1$1.DocumentType) {
|
|
5646
|
+
if (node2.firstChild && node2.firstChild.nodeType === 1) {
|
|
5647
|
+
node2.insertBefore(childNode, node2.firstChild);
|
|
5648
|
+
} else {
|
|
5649
|
+
node2.appendChild(childNode);
|
|
5650
|
+
}
|
|
5645
5651
|
} else {
|
|
5646
5652
|
node2.appendChild(childNode);
|
|
5647
5653
|
}
|
|
@@ -17470,12 +17476,13 @@ class Replayer {
|
|
|
17470
17476
|
}
|
|
17471
17477
|
}
|
|
17472
17478
|
applyStyleDeclaration(data, styleSheet) {
|
|
17479
|
+
var _a2, _b;
|
|
17473
17480
|
if (data.set) {
|
|
17474
17481
|
const rule2 = getNestedRule(
|
|
17475
17482
|
styleSheet.rules,
|
|
17476
17483
|
data.index
|
|
17477
17484
|
);
|
|
17478
|
-
rule2.style.setProperty(
|
|
17485
|
+
(_a2 = rule2 == null ? void 0 : rule2.style) == null ? void 0 : _a2.setProperty(
|
|
17479
17486
|
data.set.property,
|
|
17480
17487
|
data.set.value,
|
|
17481
17488
|
data.set.priority
|
|
@@ -17486,7 +17493,7 @@ class Replayer {
|
|
|
17486
17493
|
styleSheet.rules,
|
|
17487
17494
|
data.index
|
|
17488
17495
|
);
|
|
17489
|
-
rule2.style.removeProperty(data.remove.property);
|
|
17496
|
+
(_b = rule2 == null ? void 0 : rule2.style) == null ? void 0 : _b.removeProperty(data.remove.property);
|
|
17490
17497
|
}
|
|
17491
17498
|
}
|
|
17492
17499
|
applyAdoptedStyleSheet(data) {
|