@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 +3 -0
- package/dist/record.cjs.map +1 -1
- package/dist/record.js +3 -0
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +3 -0
- package/dist/record.umd.cjs.map +2 -2
- package/dist/record.umd.min.cjs +6 -6
- package/dist/record.umd.min.cjs.map +3 -3
- package/package.json +1 -1
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;
|