@glimt/record 0.0.37 → 0.0.38
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 +5 -1
- package/dist/record.cjs.map +1 -1
- package/dist/record.js +5 -1
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +5 -1
- package/dist/record.umd.cjs.map +2 -2
- package/dist/record.umd.min.cjs +10 -10
- package/dist/record.umd.min.cjs.map +2 -2
- package/package.json +1 -1
package/dist/record.cjs
CHANGED
|
@@ -12591,6 +12591,7 @@ function record(options = {}) {
|
|
|
12591
12591
|
};
|
|
12592
12592
|
const customOnLoad = () => {
|
|
12593
12593
|
window.removeEventListener("load", customOnLoad);
|
|
12594
|
+
console.log("customOnLoad fired", recording, initedAt);
|
|
12594
12595
|
if (!recording || initedAt == null) return;
|
|
12595
12596
|
console.log("customOnLoad wants to take a full snapshot");
|
|
12596
12597
|
if (Date.now() - initedAt <= 10) {
|
|
@@ -12602,7 +12603,10 @@ function record(options = {}) {
|
|
|
12602
12603
|
};
|
|
12603
12604
|
window.addEventListener("load", customOnLoad);
|
|
12604
12605
|
if (document.readyState === "interactive" || document.readyState === "complete") {
|
|
12605
|
-
console.log(
|
|
12606
|
+
console.log(
|
|
12607
|
+
"fired init() bc readyState === 'interactive' || 'complete'",
|
|
12608
|
+
document.readyState
|
|
12609
|
+
);
|
|
12606
12610
|
init();
|
|
12607
12611
|
} else {
|
|
12608
12612
|
handlers.push(
|