Skip to content

Commit

Permalink
TASK: Initialize.js makes loadCookiebannerHtml parameters explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
gjwnc authored and Nikdro committed Apr 22, 2024
1 parent 7c0b705 commit e84f9be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Resources/Public/JavaScript/Initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ if (typeof KD_GDPR_CC !== 'undefined' && KD_GDPR_CC.documentNodeDisabled === fal
var decisionExpiry = cookieConsentDate.getTime() + KD_GDPR_CC.decisionTtl;

if (versionDate > cookieConsentDate && window.neos === undefined) {
loadCookiebannerHtml();
loadCookiebannerHtml(false, false, false);
} else if (!Array.isArray(cookieObject.consents) && !cookieObject.consents[KD_GDPR_CC.dimensionsIdentifier]) {
loadCookiebannerHtml();
loadCookiebannerHtml(false, false, false);
} else if (KD_GDPR_CC.decisionTtl > 0 && decisionExpiry < new Date()) {
//Re-Open Cookie-Consent, if TTL is expired
loadCookiebannerHtml(true);
loadCookiebannerHtml(true, false, false);
}


Expand All @@ -109,7 +109,7 @@ if (typeof KD_GDPR_CC !== 'undefined' && KD_GDPR_CC.documentNodeDisabled === fal
});
} else if (typeof KD_GDPR_CC !== 'undefined' && KD_GDPR_CC.documentNodeDisabled === false && document.getElementsByClassName('gdpr-cookieconsent-settings').length === 0 && window.neos === undefined) {
/*No Cookie set, not in backend & not on cookie page*/
loadCookiebannerHtml();
loadCookiebannerHtml(false, false, false);
}

var links = document.querySelectorAll('a[href*=\"#GDPR-CC-open-settings\"]');
Expand Down

0 comments on commit e84f9be

Please sign in to comment.