@glimt/record 0.0.37 → 0.0.39
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/record.cjs +3 -8
- package/dist/record.cjs.map +1 -1
- package/dist/record.js +3 -8
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +3 -8
- package/dist/record.umd.cjs.map +2 -2
- package/dist/record.umd.min.cjs +8 -8
- package/dist/record.umd.min.cjs.map +2 -2
- package/package.json +1 -1
package/dist/record.js
CHANGED
|
@@ -1211,8 +1211,6 @@ function serializeElementNode(n2, options) {
|
|
|
1211
1211
|
delete attributes.rel;
|
|
1212
1212
|
delete attributes.href;
|
|
1213
1213
|
attributes._cssText = cssText;
|
|
1214
|
-
} else {
|
|
1215
|
-
console.log("failed to extract stylesheets from link element", n2);
|
|
1216
1214
|
}
|
|
1217
1215
|
}
|
|
1218
1216
|
if (tagName === "style" && n2.sheet) {
|
|
@@ -12590,17 +12588,16 @@ function record(options = {}) {
|
|
|
12590
12588
|
const customOnLoad = () => {
|
|
12591
12589
|
window.removeEventListener("load", customOnLoad);
|
|
12592
12590
|
if (!recording || initedAt == null) return;
|
|
12593
|
-
console.log("customOnLoad wants to take a full snapshot");
|
|
12594
12591
|
if (Date.now() - initedAt <= 10) {
|
|
12595
|
-
console.log("customOnLoad skipping full snapshot bc it was too soon");
|
|
12596
12592
|
return;
|
|
12597
12593
|
}
|
|
12598
|
-
console.log("customOnLoad taking full snapshot bc race condition");
|
|
12599
12594
|
takeFullSnapshot$1();
|
|
12600
12595
|
};
|
|
12601
12596
|
window.addEventListener("load", customOnLoad);
|
|
12602
12597
|
if (document.readyState === "interactive" || document.readyState === "complete") {
|
|
12603
|
-
|
|
12598
|
+
if (document.readyState === "complete") {
|
|
12599
|
+
window.removeEventListener("load", customOnLoad);
|
|
12600
|
+
}
|
|
12604
12601
|
init();
|
|
12605
12602
|
} else {
|
|
12606
12603
|
handlers.push(
|
|
@@ -12610,7 +12607,6 @@ function record(options = {}) {
|
|
|
12610
12607
|
data: {}
|
|
12611
12608
|
});
|
|
12612
12609
|
if (recordAfter === "DOMContentLoaded") {
|
|
12613
|
-
console.log("fired init() bc listener 'DOMContentLoaded'");
|
|
12614
12610
|
init();
|
|
12615
12611
|
}
|
|
12616
12612
|
})
|
|
@@ -12624,7 +12620,6 @@ function record(options = {}) {
|
|
|
12624
12620
|
data: {}
|
|
12625
12621
|
});
|
|
12626
12622
|
if (recordAfter === "load") {
|
|
12627
|
-
console.log("fired init() bc listener 'load'");
|
|
12628
12623
|
init();
|
|
12629
12624
|
}
|
|
12630
12625
|
},
|