@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.
package/dist/record.cjs CHANGED
@@ -1495,6 +1495,7 @@ function serializeElementNode(n2, options) {
1495
1495
  }
1496
1496
  const image = n2;
1497
1497
  let overrideImage = null;
1498
+ let calls = 0;
1498
1499
  const imageSrc = (image.currentSrc || image.getAttribute("src") || "<unknown-src>") + "";
1499
1500
  const imageHeight = image.naturalHeight;
1500
1501
  const imageWidth = image.naturalWidth;
@@ -1502,6 +1503,8 @@ function serializeElementNode(n2, options) {
1502
1503
  overrideImage = null;
1503
1504
  };
1504
1505
  const recordInlineImage = () => {
1506
+ calls++;
1507
+ if (calls > 3) return;
1505
1508
  (overrideImage ?? image).removeEventListener("error", onImageLoadError);
1506
1509
  try {
1507
1510
  canvasService.width = imageWidth;