Auto select day if less than 24h data for new sites.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user