From 8d20ca2679e45c9828303b68ba786a6df78affe3 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Thu, 18 Feb 2021 11:05:38 +0000 Subject: [PATCH] Bug 27378: Fix typo on cookie deletion expiry This commit fixes a typo in the expiry date of the "delete cookie" setting. It was causing the cookie to be set to an empty value, rather than being removed from the cookie store. --- koha-tmpl/opac-tmpl/bootstrap/js/cookieconsent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/cookieconsent.js b/koha-tmpl/opac-tmpl/bootstrap/js/cookieconsent.js index 0cb56d82f8..ec4372216c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/cookieconsent.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/cookieconsent.js @@ -128,7 +128,7 @@ allCookies.forEach(function (cookie) { const name = cookie.split('=')[0]; if (regex.test(name)) { - document.cookie = name + '=; expires=Thu, 01 Jan 1970 00: 00: 01 GMT; domain=' + cookieDomain + '; path=' + cookiePath; + document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT; domain=' + cookieDomain +'; path=' + cookiePath; } }); } -- 2.20.1