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