@social-mail/social-mail-client 1.2.49 → 1.2.50

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/component.js CHANGED
@@ -23,7 +23,7 @@
23
23
  script.setAttribute("data-replace", v);
24
24
  }
25
25
  e.setAttribute("data-ready", "yes");
26
-
26
+ document.body.appendChild(script);
27
27
  }
28
28
  }, 100);
29
29
  })();
@@ -39405,13 +39405,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
39405
39405
  element.removeAttribute("draggable");
39406
39406
  }
39407
39407
  if (clone.querySelector(`[styler-layout="component"]`)) {
39408
- if (!clone.querySelector("[styler-component-script]")) {
39409
- const script = this.htmlDocument.createElement("script");
39410
- script.src = UMD.resolvePath("@social-mail/social-mail-client/component.js");
39411
- script.setAttribute("styler-component-script", "component-script");
39408
+ let componentScript = clone.querySelector("[styler-component-script]");
39409
+ if (!componentScript) {
39410
+ componentScript = this.htmlDocument.createElement("script");
39412
39411
  const head = clone.querySelector("head");
39413
- head.appendChild(script);
39412
+ head.appendChild(componentScript);
39414
39413
  }
39414
+ componentScript.src = UMD.resolvePath("@social-mail/social-mail-client/component.js");
39415
+ componentScript.setAttribute("styler-component-script", "component-script");
39415
39416
  }
39416
39417
  const currentHtml = clone.innerHTML;
39417
39418
  if (!lastHtml) {