@glimt/record 0.0.52 → 0.0.53
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 +0 -21
- package/dist/record.cjs.map +1 -1
- package/dist/record.js +0 -21
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +0 -21
- package/dist/record.umd.cjs.map +2 -2
- package/dist/record.umd.min.cjs +22 -22
- package/dist/record.umd.min.cjs.map +3 -3
- package/package.json +1 -1
package/dist/record.js
CHANGED
|
@@ -426,14 +426,6 @@ const index = {
|
|
|
426
426
|
patch
|
|
427
427
|
};
|
|
428
428
|
const shouldTryAnonymousFetchingOnCorsError$1 = () => {
|
|
429
|
-
try {
|
|
430
|
-
console.log(
|
|
431
|
-
"window._rrweb_skip_re_fetching_to_suppress_cors_errors",
|
|
432
|
-
//@ts-expect-error
|
|
433
|
-
window._rrweb_skip_re_fetching_to_suppress_cors_errors
|
|
434
|
-
);
|
|
435
|
-
} catch (err) {
|
|
436
|
-
}
|
|
437
429
|
return !("_rrweb_skip_re_fetching_to_suppress_cors_errors" in window && window._rrweb_skip_re_fetching_to_suppress_cors_errors === true);
|
|
438
430
|
};
|
|
439
431
|
function isElement(n2) {
|
|
@@ -1504,9 +1496,7 @@ function serializeElementNode(n2, options) {
|
|
|
1504
1496
|
const imageSrc = (image.currentSrc || image.getAttribute("src") || "<unknown-src>") + "";
|
|
1505
1497
|
const imageHeight = image.naturalHeight;
|
|
1506
1498
|
const imageWidth = image.naturalWidth;
|
|
1507
|
-
console.log("handling inline image", image, imageSrc);
|
|
1508
1499
|
const inlineImageCleanup = () => {
|
|
1509
|
-
console.log("cleaning up", imageSrc);
|
|
1510
1500
|
overrideImage = null;
|
|
1511
1501
|
};
|
|
1512
1502
|
const recordInlineImage = () => {
|
|
@@ -1520,11 +1510,8 @@ function serializeElementNode(n2, options) {
|
|
|
1520
1510
|
dataURLOptions.quality
|
|
1521
1511
|
);
|
|
1522
1512
|
} catch (err) {
|
|
1523
|
-
console.log("detected inline image error", err, imageSrc);
|
|
1524
1513
|
if (image.crossOrigin !== "anonymous") {
|
|
1525
|
-
console.log("crossOrigin is not anonymous", imageSrc);
|
|
1526
1514
|
if (shouldTryAnonymousFetchingOnCorsError$1()) {
|
|
1527
|
-
console.log("overriding image", imageSrc);
|
|
1528
1515
|
overrideImage = new Image();
|
|
1529
1516
|
overrideImage.src = imageSrc;
|
|
1530
1517
|
overrideImage.crossOrigin = "anonymous";
|
|
@@ -5596,14 +5583,6 @@ var __defProp22 = Object.defineProperty;
|
|
|
5596
5583
|
var __defNormalProp22 = (obj, key, value) => key in obj ? __defProp22(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5597
5584
|
var __publicField22 = (obj, key, value) => __defNormalProp22(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5598
5585
|
const shouldTryAnonymousFetchingOnCorsError = () => {
|
|
5599
|
-
try {
|
|
5600
|
-
console.log(
|
|
5601
|
-
"window._rrweb_skip_re_fetching_to_suppress_cors_errors",
|
|
5602
|
-
//@ts-expect-error
|
|
5603
|
-
window._rrweb_skip_re_fetching_to_suppress_cors_errors
|
|
5604
|
-
);
|
|
5605
|
-
} catch (err) {
|
|
5606
|
-
}
|
|
5607
5586
|
return !("_rrweb_skip_re_fetching_to_suppress_cors_errors" in window && window._rrweb_skip_re_fetching_to_suppress_cors_errors === true);
|
|
5608
5587
|
};
|
|
5609
5588
|
function fixBrowserCompatibilityIssuesInCSS(cssText) {
|