make the style cookie apply to the whole site

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

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