fixed firefox cookie security error

This commit is contained in:
Bea 2020-07-10 12:44:35 +02:00
parent 419c6bd12f
commit 30fbc9b80a

View File

@ -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) {