@nortic/citronkaka-ui 0.0.2-beta.33 → 0.1.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.
|
@@ -272,8 +272,8 @@ class b {
|
|
|
272
272
|
* Initializes the cookie consent dialog if user action has not been recorded.
|
|
273
273
|
*/
|
|
274
274
|
init() {
|
|
275
|
-
this.service.model.useraction || (this.loadUI(), this.service.on("update", (
|
|
276
|
-
|
|
275
|
+
this.service.model.useraction || (this.loadUI(), this.service.on("update", () => {
|
|
276
|
+
this.unloadUI();
|
|
277
277
|
}));
|
|
278
278
|
}
|
|
279
279
|
/**
|
|
@@ -281,7 +281,7 @@ class b {
|
|
|
281
281
|
*/
|
|
282
282
|
async loadUI() {
|
|
283
283
|
try {
|
|
284
|
-
const { NorticCookieConsentDialog: e } = await import("./index-
|
|
284
|
+
const { NorticCookieConsentDialog: e } = await import("./index-DEG5Kd4y.js");
|
|
285
285
|
window.customElements.get("nortic-cookie-consent-dialog") || window.customElements.define("nortic-cookie-consent-dialog", e), this.ui = document.createElement("nortic-cookie-consent-dialog"), this.ui.setAttribute("data-testid", "cookie-consent"), document.body.appendChild(this.ui);
|
|
286
286
|
} catch (e) {
|
|
287
287
|
console.error("Failed to load the cookie consent dialog:", e);
|