make the style cookie apply to the whole site

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
2025-03-17 01:00:10 -05:00
parent f3eed9d4f2
commit afc85faa2f

View File

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