From 5fc071a534dbb8b97c7f144d4fbf7967f3739be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenzo=20Dellac=C3=A0?= Date: Tue, 16 Mar 2021 17:39:58 +0100 Subject: [PATCH] Add cookie consent fix --- assets/js/scripts/policy-popup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/scripts/policy-popup.js b/assets/js/scripts/policy-popup.js index 2108592..eafb0b8 100755 --- a/assets/js/scripts/policy-popup.js +++ b/assets/js/scripts/policy-popup.js @@ -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) {