clarity-visualize 0.8.61 → 0.8.62

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.
@@ -1546,14 +1546,13 @@ class LayoutHelper {
1546
1546
  node.attributes = {};
1547
1547
  }
1548
1548
  this.setAttributes(linkElement, node);
1549
+ // Strip SRI: recorded hashes won't match proxied/redeployed bytes during replay. See microsoft/clarity#418.
1550
+ linkElement.removeAttribute("integrity");
1549
1551
  if ("rel" in node.attributes) {
1550
1552
  if (node.attributes["rel"] === "stylesheet" /* Constant.StyleSheet */) {
1551
1553
  this.stylesheets.push(new Promise((resolve) => {
1552
1554
  const proxy = useproxy !== null && useproxy !== void 0 ? useproxy : this.state.options.useproxy;
1553
1555
  if (proxy) {
1554
- if (linkElement.integrity) {
1555
- linkElement.removeAttribute('integrity');
1556
- }
1557
1556
  linkElement.href = proxy(linkElement.href, linkElement.id, "stylesheet" /* Constant.StyleSheet */);
1558
1557
  }
1559
1558
  linkElement.onload = linkElement.onerror = this.style.bind(this, linkElement, resolve);