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

(cherry picked from commit 281d32e)
  • Loading branch information
markuspfeifenberger authored and Nikdro committed Oct 7, 2021
1 parent 271ce94 commit 6374008
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() {
xhr.send();
}

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

0 comments on commit 6374008

Please sign in to comment.