assets/themes/j1/modules/cookieConsent/js/cookieConsent.js in j1-template-2022.3.0 vs assets/themes/j1/modules/cookieConsent/js/cookieConsent.js in j1-template-2022.3.1
- old
+ new
@@ -363,9 +363,10 @@
}
// call consent dialog if no cookie found or cookie NOT accepted (except whitelisted pages)
//
whitelisted = (this.props.whitelisted.indexOf(window.location.pathname) > -1);
+
var consentCookie = Cookie.get(this.props.cookieName);
if ((consentCookie === undefined || consentCookie === "false") && this.props.autoShowDialog && !whitelisted) {
showDialog();
}