From 165abe4eaf4597d7b8e64ec245bd2036a3ec02df Mon Sep 17 00:00:00 2001 From: Eltrac Date: Wed, 10 Sep 2025 18:18:32 +0800 Subject: refactor: use existence instead of boolean string in local storage Umami needs `umami.disabled` value to be `1` to actually disable it. Also, local storage can't store booleans, hence 'true' and 'false' are stored as strings, which is dumb. Just remove the item when it needs to be set false. --- layouts/_partials/components/back-to-top.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/_partials/components') diff --git a/layouts/_partials/components/back-to-top.html b/layouts/_partials/components/back-to-top.html index ea990f93..bf094d5d 100644 --- a/layouts/_partials/components/back-to-top.html +++ b/layouts/_partials/components/back-to-top.html @@ -15,7 +15,7 @@