fix: paths

This commit is contained in:
Cory Dransfeldt 2024-03-25 10:14:39 -07:00
parent 1d4f9a62b2
commit f1aa80b606
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
let ignore;
let url = `https://coryd.dev/api/event/?page=${encodeURIComponent(window.location.href)}&lang=${encodeURIComponent(navigator.language)}&nav=${encodeURIComponent(navigator.userAgent)}`
let url = `https://coryd.dev/api/event/?site=${encodeURIComponent(window.location.origin)}&page=${encodeURIComponent(window.location.pathname)}&lang=${encodeURIComponent(navigator.language)}&nav=${encodeURIComponent(navigator.userAgent)}`
if (window.localStorage && window.localStorage.getItem('ignore')) {
ignore = localStorage.getItem('ignore')
url = `${url}&ignore=${ignore}`