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