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