chore: fixes
This commit is contained in:
parent
86ab1d894d
commit
ef280f0a1c
2 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ let i;
|
|||
if (window.sessionStorage && !window.sessionStorage?.getItem('id')) sessionStorage.setItem('id', id)
|
||||
if (window.localStorage && window.localStorage.getItem('i')) i = localStorage.getItem('i')
|
||||
if (!window.fathom) {
|
||||
fetch(`https://coryd.dev/api/event/?page=${encodeURIComponent(window.location.href)}&num=${sessionStorage.getItem('id' || id)}&lang=${navigator.language}&nav=${navigator.userAgent}&i=${i}`)
|
||||
fetch(`https://coryd.dev/api/event/?page=${encodeURIComponent(window.location.href)}&num=${sessionStorage.getItem('id' || id)}&lang=${encodeURIComponent(navigator.language)}&nav=${encodeURIComponent(navigator.userAgent)}&i=${i}`)
|
||||
.then((data) => {
|
||||
console.log(data)
|
||||
return {}
|
||||
|
|
Reference in a new issue