Skip to content

Commit

Permalink
Merge pull request #33 from markuspfeifenberger/patch-1
Browse files Browse the repository at this point in the history
Update Initialize.js
  • Loading branch information
Nikdro authored Oct 7, 2021
2 parents b9bc698 + 281d32e commit 058caa8
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 058caa8

Please sign in to comment.