@naturalcycles/internal-web-lib 1.2.1 → 1.3.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.
@@ -699,6 +699,10 @@ var le = r(H), ue = class extends HTMLElement {
699
699
  scrollY = 0;
700
700
  static open(t) {
701
701
  if (C()) return;
702
+ if (document.readyState === "loading") {
703
+ document.addEventListener("DOMContentLoaded", () => e.open(t), { once: !0 });
704
+ return;
705
+ }
702
706
  let n = e.getOrCreate(t?.language);
703
707
  t?.view === c.settings ? n.showSettings() : t?.view === c.banner && n.showBanner(), n.setAttribute("display", "true");
704
708
  }