@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.
- package/bundle/analyticsClient.js.map +1 -1
- package/bundle/conversionClient.js +75 -29
- package/bundle/conversionClient.js.map +1 -1
- package/bundle/cookieMonster.js +4 -0
- package/bundle/cookieMonster.js.map +1 -1
- package/dist/analytics/analyticsClient.d.ts +2 -2
- package/dist/conversion/conversionClient.d.ts +13 -4
- package/dist/conversion/conversionClient.js +37 -11
- package/dist/cookie-monster/cookie-monster-element.js +4 -0
- package/package.json +3 -3
package/bundle/cookieMonster.js
CHANGED
|
@@ -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
|
}
|