From 0e60afb2246434563a32c324ddecc096b7c064c5 Mon Sep 17 00:00:00 2001 From: Set Hallstrom Date: Tue, 24 Nov 2020 19:42:39 +0100 Subject: [PATCH] dynamise publisher domain in cookie-consent mechanism --- _includes/cookie-consent.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/cookie-consent.html b/_includes/cookie-consent.html index a1c7c80..a3a878a 100644 --- a/_includes/cookie-consent.html +++ b/_includes/cookie-consent.html @@ -19,7 +19,7 @@ date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); expires = "; expires=" + date.toUTCString(); } - document.cookie = name + "=" + value + "; domain=.basspistol.com" + expires + "; path=/;SameSite=Strict"; + document.cookie = name + "=" + value + "; domain=.{{ site.publisher.domain }}" + expires + "; path=/;SameSite=Strict"; } function readCookie(name) { var nameEQ = name + "=";