Add cookie consent fix
This commit is contained in:
parent
d976eaed0c
commit
5fc071a534
@ -7,8 +7,9 @@ function openPolicyPopup() {
|
|||||||
function agreePolicyPopup() {
|
function agreePolicyPopup() {
|
||||||
const _paq = window._paq || [];
|
const _paq = window._paq || [];
|
||||||
_paq.push(['rememberConsentGiven', 43800]);
|
_paq.push(['rememberConsentGiven', 43800]);
|
||||||
|
_paq.push(['rememberCookieConsentGiven']);
|
||||||
$("#mind-policy-popup").fadeOut(300); // Disable the div
|
$("#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) {
|
function getCookie(cname) {
|
||||||
|
Loading…
Reference in New Issue
Block a user