@glimt/record 0.0.49 → 0.0.50

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
@@ -1497,7 +1497,9 @@ function serializeElementNode(n2, options) {
1497
1497
  const imageSrc = image.currentSrc || image.getAttribute("src") || "<unknown-src>";
1498
1498
  const imageHeight = image.naturalHeight;
1499
1499
  const imageWidth = image.naturalWidth;
1500
+ let hasRetried = false;
1500
1501
  const inlineImageCleanup = () => {
1502
+ if (!hasRetried) return;
1501
1503
  image = null;
1502
1504
  };
1503
1505
  const recordInlineImage = () => {
@@ -1514,6 +1516,7 @@ function serializeElementNode(n2, options) {
1514
1516
  if (image.crossOrigin !== "anonymous") {
1515
1517
  if (shouldTryAnonymousFetchingOnCorsError$1()) {
1516
1518
  image = new Image();
1519
+ hasRetried = true;
1517
1520
  image.src = imageSrc;
1518
1521
  image.crossOrigin = "anonymous";
1519
1522
  image.height = imageHeight;