@glimt/record 0.0.55 → 0.0.56

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.
@@ -1528,6 +1528,7 @@ function serializeElementNode(n2, options) {
1528
1528
  }
1529
1529
  const image = n2;
1530
1530
  let overrideImage = null;
1531
+ let calls = 0;
1531
1532
  const imageSrc = (image.currentSrc || image.getAttribute("src") || "<unknown-src>") + "";
1532
1533
  const imageHeight = image.naturalHeight;
1533
1534
  const imageWidth = image.naturalWidth;
@@ -1535,6 +1536,8 @@ function serializeElementNode(n2, options) {
1535
1536
  overrideImage = null;
1536
1537
  };
1537
1538
  const recordInlineImage = () => {
1539
+ calls++;
1540
+ if (calls > 3) return;
1538
1541
  (overrideImage != null ? overrideImage : image).removeEventListener("error", onImageLoadError);
1539
1542
  try {
1540
1543
  canvasService.width = imageWidth;