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