skip reload when accepting cookie

This commit is contained in:
Set Hallstrom 2020-11-24 19:27:21 +01:00
parent 19be21f3bd
commit 33ffadfc64

View file

@ -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();
//
// });