@posthog/rrweb 0.0.24 → 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 +8 -2
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +8 -2
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +8 -2
- 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.js
CHANGED
|
@@ -238,8 +238,8 @@ function stringifyStylesheet(s2) {
|
|
|
238
238
|
return null;
|
|
239
239
|
}
|
|
240
240
|
let sheetHref = s2.href;
|
|
241
|
-
if (!sheetHref && s2.ownerNode
|
|
242
|
-
sheetHref = s2.ownerNode.
|
|
241
|
+
if (!sheetHref && s2.ownerNode) {
|
|
242
|
+
sheetHref = s2.ownerNode.baseURI;
|
|
243
243
|
}
|
|
244
244
|
const stringifiedRules = Array.from(
|
|
245
245
|
rules2,
|
|
@@ -5640,6 +5640,12 @@ function buildNodeWithSN(n2, options) {
|
|
|
5640
5640
|
} else {
|
|
5641
5641
|
node2.appendChild(childNode);
|
|
5642
5642
|
}
|
|
5643
|
+
} else if (n2.type === NodeType$1$1.Document && childN.type === NodeType$1$1.DocumentType) {
|
|
5644
|
+
if (node2.firstChild && node2.firstChild.nodeType === 1) {
|
|
5645
|
+
node2.insertBefore(childNode, node2.firstChild);
|
|
5646
|
+
} else {
|
|
5647
|
+
node2.appendChild(childNode);
|
|
5648
|
+
}
|
|
5643
5649
|
} else {
|
|
5644
5650
|
node2.appendChild(childNode);
|
|
5645
5651
|
}
|