Add cookie consent fix

This commit is contained in:
Lorenzo Dellacà 2021-03-16 17:39:58 +01:00
parent d976eaed0c
commit 5fc071a534

View File

@ -7,8 +7,9 @@ function openPolicyPopup() {
function agreePolicyPopup() {
const _paq = window._paq || [];
_paq.push(['rememberConsentGiven', 43800]);
_paq.push(['rememberCookieConsentGiven']);
$("#mind-policy-popup").fadeOut(300); // Disable the div
setCookie("consentGiven", "true", 1825) // todo: check if already present? also, firefox was throwing a warning...
setCookie("consentGiven", "true", 1825); // todo: check if already present? also, firefox was throwing a warning...
}
function getCookie(cname) {