Skip to content

Commit

Permalink
Update Initialize.js
Browse files Browse the repository at this point in the history
Fix JS error in Backend - KD_GDPR_CC not defined
  • Loading branch information
markuspfeifenberger authored Sep 23, 2021
1 parent a1df8e8 commit 281d32e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function loadCookiebannerHtml(openSettings = false) {
xhr.send();
}

if (KD_GDPR_CC.nodeTypeDisabled === false && document.cookie.indexOf(KD_GDPR_CC.cookieName) >= 0) {
if (KD_GDPR_CC && KD_GDPR_CC.nodeTypeDisabled === false && document.cookie.indexOf(KD_GDPR_CC.cookieName) >= 0) {
/*Cookie set*/
window.dataLayer = window.dataLayer || [];
var cookieObject = JSON.parse(
Expand Down

0 comments on commit 281d32e

Please sign in to comment.