Auto select day if less than 24h data for new sites.

This commit is contained in:
2026-08-22 01:51:36 +00:00
parent c77598adc7
commit a16fe88114
4 changed files with 26 additions and 5 deletions
+3 -1
View File
@@ -9,7 +9,9 @@ let app = null
export function mount(container) {
if (app) return
app = createApp(AnalyticsView, {
initialRange: location.hash.slice(1) || 'week',
initialRange: location.hash.slice(1)
|| container.dataset.initialRange
|| 'week',
})
app.mount(container)
}