@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 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) {
@@ -12592,17 +12590,16 @@ function record(options = {}) {
12592
12590
  const customOnLoad = () => {
12593
12591
  window.removeEventListener("load", customOnLoad);
12594
12592
  if (!recording || initedAt == null) return;
12595
- console.log("customOnLoad wants to take a full snapshot");
12596
12593
  if (Date.now() - initedAt <= 10) {
12597
- console.log("customOnLoad skipping full snapshot bc it was too soon");
12598
12594
  return;
12599
12595
  }
12600
- console.log("customOnLoad taking full snapshot bc race condition");
12601
12596
  takeFullSnapshot$1();
12602
12597
  };
12603
12598
  window.addEventListener("load", customOnLoad);
12604
12599
  if (document.readyState === "interactive" || document.readyState === "complete") {
12605
- console.log("fired init() bc readyState === 'interactive' || 'complete'");
12600
+ if (document.readyState === "complete") {
12601
+ window.removeEventListener("load", customOnLoad);
12602
+ }
12606
12603
  init();
12607
12604
  } else {
12608
12605
  handlers.push(
@@ -12612,7 +12609,6 @@ function record(options = {}) {
12612
12609
  data: {}
12613
12610
  });
12614
12611
  if (recordAfter === "DOMContentLoaded") {
12615
- console.log("fired init() bc listener 'DOMContentLoaded'");
12616
12612
  init();
12617
12613
  }
12618
12614
  })
@@ -12626,7 +12622,6 @@ function record(options = {}) {
12626
12622
  data: {}
12627
12623
  });
12628
12624
  if (recordAfter === "load") {
12629
- console.log("fired init() bc listener 'load'");
12630
12625
  init();
12631
12626
  }
12632
12627
  },