KaufmannDigital.GDPR.CookieConsent icon indicating copy to clipboard operation
KaufmannDigital.GDPR.CookieConsent copied to clipboard

JS Error in Backend

Open patricekaufmann opened this issue 2 years ago • 0 comments

Problem:

In Neos Backend the object KD_GDPR_CC is not initialized, hence the following check in Initialize.js is throwing an error: L21: if (KD_GDPR_CC && document.cookie.indexOf(KD_GDPR_CC.cookieName) >= 0) {

The check can be performed in the following way without throwing an error: L21: if (typeof KD_GDPR_CC !== 'undefined' && KD_GDPR_CC && document.cookie.indexOf(KD_GDPR_CC.cookieName) >= 0) {

patricekaufmann avatar Feb 03 '22 10:02 patricekaufmann