@posthog/rrweb-snapshot 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-snapshot.cjs +8 -2
- package/dist/rrweb-snapshot.cjs.map +1 -1
- package/dist/rrweb-snapshot.js +8 -2
- package/dist/rrweb-snapshot.js.map +1 -1
- package/dist/rrweb-snapshot.umd.cjs +8 -2
- package/dist/rrweb-snapshot.umd.cjs.map +2 -2
- package/dist/rrweb-snapshot.umd.min.cjs +4 -4
- package/dist/rrweb-snapshot.umd.min.cjs.map +2 -2
- package/package.json +1 -1
package/dist/rrweb-snapshot.cjs
CHANGED
|
@@ -236,8 +236,8 @@ function stringifyStylesheet(s) {
|
|
|
236
236
|
return null;
|
|
237
237
|
}
|
|
238
238
|
let sheetHref = s.href;
|
|
239
|
-
if (!sheetHref && s.ownerNode
|
|
240
|
-
sheetHref = s.ownerNode.
|
|
239
|
+
if (!sheetHref && s.ownerNode) {
|
|
240
|
+
sheetHref = s.ownerNode.baseURI;
|
|
241
241
|
}
|
|
242
242
|
const stringifiedRules = Array.from(
|
|
243
243
|
rules,
|
|
@@ -5659,6 +5659,12 @@ function buildNodeWithSN(n, options) {
|
|
|
5659
5659
|
} else {
|
|
5660
5660
|
node2.appendChild(childNode);
|
|
5661
5661
|
}
|
|
5662
|
+
} else if (n.type === NodeType$1.Document && childN.type === NodeType$1.DocumentType) {
|
|
5663
|
+
if (node2.firstChild && node2.firstChild.nodeType === 1) {
|
|
5664
|
+
node2.insertBefore(childNode, node2.firstChild);
|
|
5665
|
+
} else {
|
|
5666
|
+
node2.appendChild(childNode);
|
|
5667
|
+
}
|
|
5662
5668
|
} else {
|
|
5663
5669
|
node2.appendChild(childNode);
|
|
5664
5670
|
}
|