From afc85faa2fee68e519ac505d460fc3c15418e70c Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Mon, 17 Mar 2025 01:00:10 -0500 Subject: [PATCH] make the style cookie apply to the whole site Signed-off-by: Brian S. Stephan --- incorporealcms/templates/base.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/incorporealcms/templates/base.html b/incorporealcms/templates/base.html index 2edf50a..e902942 100644 --- a/incorporealcms/templates/base.html +++ b/incorporealcms/templates/base.html @@ -36,7 +36,8 @@ function applyStyle(styleName) { } function setStyle(styleName) { - document.cookie = "user-style=" + encodeURIComponent(styleName) + "; max-age=31536000"; + document.cookie = "user-style=" + encodeURIComponent(styleName) + + "; max-age=31536000;domain={{ config.DOMAIN_NAME }};path=/"; applyStyle(styleName); }