Slightly prettier analytics URL

This commit is contained in:
2026-08-21 23:58:00 +00:00
parent 6199e5a69e
commit 29f8fac013
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ const range = ref(RANGES[props.initialRange] ? props.initialRange : 'week')
// Keep the URL shareable when the range changes.
watch(range, (r) => {
const url = new URL(location.href)
url.searchParams.set('range', r)
url.hash = r
history.replaceState(null, '', url)
})