diff --git a/scripts/policy-popup.js b/scripts/policy-popup.js index 1dd54f4..394aee9 100644 --- a/scripts/policy-popup.js +++ b/scripts/policy-popup.js @@ -6,9 +6,9 @@ function openPolicyPopup() { function agreePolicyPopup() { const _paq = window._paq || []; - _paq.push(['rememberConsentGiven']); // todo: check if this works + _paq.push(['rememberConsentGiven']); $("#policy-popup").fadeOut(1000); // Disable the div - document.cookie = "consentGiven=true"; // todo: check if already present? also, firefox was throwing a warning... + document.cookie = "consentGiven=true;SameSite=Lax"; // todo: check if already present? also, firefox was throwing a warning... } function getCookie(cname) {