@sailfish-rrweb/replay 0.1.1-sailfish → 0.2.0

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/replay.cjs CHANGED
@@ -3845,10 +3845,7 @@ function buildNode(n2, options) {
3845
3845
  } else if (tagName === "link" && (n2.attributes.rel === "preload" || n2.attributes.rel === "modulepreload") && n2.attributes.as === "script") {
3846
3846
  } else if (tagName === "link" && n2.attributes.rel === "prefetch" && typeof n2.attributes.href === "string" && n2.attributes.href.endsWith(".js")) {
3847
3847
  } else if (tagName === "img" && n2.attributes.srcset && n2.attributes.rr_dataURL) {
3848
- node2.setAttribute(
3849
- "@sailfish-rrweb/rrweb-original-srcset",
3850
- n2.attributes.srcset
3851
- );
3848
+ node2.setAttribute("original-srcset", n2.attributes.srcset);
3852
3849
  } else {
3853
3850
  node2.setAttribute(name, value.toString());
3854
3851
  }
@@ -3871,10 +3868,7 @@ function buildNode(n2, options) {
3871
3868
  } else if (tagName === "img" && name === "rr_dataURL") {
3872
3869
  const image = node2;
3873
3870
  if (!image.currentSrc.startsWith("data:")) {
3874
- image.setAttribute(
3875
- "@sailfish-rrweb/rrweb-original-src",
3876
- n2.attributes.src
3877
- );
3871
+ image.setAttribute("original-src", n2.attributes.src);
3878
3872
  image.src = value.toString();
3879
3873
  }
3880
3874
  }