mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
Merge branch 'master' into fork
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
PetiteVue.createApp({
|
||||
$delimiters: ['${', '}'],
|
||||
get currentInterval() {
|
||||
const urlParams = new URLSearchParams(window.location.search)
|
||||
if (urlParams.has('interval')) return urlParams.get('interval')
|
||||
if (!urlParams.has('from') && !urlParams.has('to')) return 'today'
|
||||
return null
|
||||
}
|
||||
}).mount('#summary-page')
|
Reference in New Issue
Block a user