KaufmannDigital / KaufmannDigital.GDPR.CookieConsent

A ready-to-run package, that integrates an advanced cookie consent banner into your Neos CMS site.
https://www.kaufmann.digital/neos-cms/plugins/dsgvo-gdpr-cookie-consent
GNU General Public License v3.0
26 stars 11 forks source link

JS Error in Backend #40

Closed patricekaufmann closed 1 year ago

patricekaufmann commented 2 years ago

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) {

Nikdro commented 1 year ago

Fixed in V5 and just merged bugfix by @ru3fu5z in all 4.x Versions