From 16beaedc6f74ab7a310a50bd7634542e86ccbfb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenzo=20Dellac=C3=A0?= Date: Tue, 16 Mar 2021 17:50:12 +0100 Subject: [PATCH] Fix policy opt-out issue --- assets/js/scripts/policy-popup.js | 4 ++-- partials/policy-popup.hbs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/scripts/policy-popup.js b/assets/js/scripts/policy-popup.js index 5a80283..2ff744c 100755 --- a/assets/js/scripts/policy-popup.js +++ b/assets/js/scripts/policy-popup.js @@ -4,7 +4,7 @@ function openPolicyPopup() { $("#mind-policy-popup").fadeIn(300); // Enable the div } -function agreePolicyPopup() { +function giveConsent() { const _paq = window._paq || []; _paq.push(['forgetUserOptOut']); _paq.push(['rememberConsentGiven', 43800]); @@ -16,7 +16,7 @@ function agreePolicyPopup() { function removeConsent() { const _paq = window._paq || []; - _paq.push(['rememberCookieConsentGiven']); + _paq.push(['forgetCookieConsentGiven']); $("#mind-policy-popup").fadeIn(300); // Enable the div setCookie("consentGiven", "false", 1825); } diff --git a/partials/policy-popup.hbs b/partials/policy-popup.hbs index c35bda2..97d4337 100644 --- a/partials/policy-popup.hbs +++ b/partials/policy-popup.hbs @@ -4,5 +4,5 @@
By visiting our website, you agree with our Privacy Policy.

- +