fixed firefox cookie security error
This commit is contained in:
parent
419c6bd12f
commit
30fbc9b80a
@ -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) {
|
||||
|
Reference in New Issue
Block a user