From 33ffadfc6469ac6545779e13273513e6b10b9a75 Mon Sep 17 00:00:00 2001 From: Set Hallstrom Date: Tue, 24 Nov 2020 19:27:21 +0100 Subject: [PATCH] skip reload when accepting cookie --- _includes/cookie-consent.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_includes/cookie-consent.html b/_includes/cookie-consent.html index 104428f..a1c7c80 100644 --- a/_includes/cookie-consent.html +++ b/_includes/cookie-consent.html @@ -52,20 +52,20 @@ createCookie('cookie-notice-dismissed', 'wantCookies', 90); document.getElementById('cookie-notice').style.display = 'none'; _paq.push(['trackEvent', 'Consent', 'wantCookie']); - location.reload(); + }); document.getElementById('cookie-notice-decline').addEventListener("click", function () { createCookie('cookie-notice-dismissed', 'dontWantCookies', 90); document.getElementById('cookie-notice').style.display = 'none'; _paq.push(['trackEvent', 'Consent', 'dontWantCookie']); - location.reload(); + }); // document.getElementById('cookie-notice-gimme').addEventListener("click", function () { // createCookie('cookie-notice-dismissed', 'wantCookies', 31); // document.getElementById('cookie-notice').style.display = 'none'; - // location.reload(); + // // });