fix: date format
This commit is contained in:
parent
bca668ef72
commit
3075a0499e
20 changed files with 53 additions and 118 deletions
|
@ -1,6 +0,0 @@
|
|||
let ignore = window?.localStorage?.getItem('ignore')
|
||||
let urlBase = 'https://coryd.dev/api/event/'
|
||||
let params = `site=${encodeURIComponent(window.location.origin)}&page=${encodeURIComponent(window.location.pathname)}&lang=${encodeURIComponent(navigator.language)}&nav=${encodeURIComponent(navigator.userAgent)}`
|
||||
let url = `${urlBase}?${params}`;
|
||||
if (ignore) url = `${urlBase}?ignore=${ignore}&${params}`
|
||||
if (!window.fathom) fetch(url).then(() => {}).catch(() => {});
|
Reference in a new issue