From 642ab61886d025e8429e059a2c1d3bdd693b6534 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sun, 24 Mar 2024 12:47:36 -0700 Subject: [PATCH] chore: fixes --- src/assets/scripts/index.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/assets/scripts/index.js b/src/assets/scripts/index.js index de9c6c55..0ca29233 100644 --- a/src/assets/scripts/index.js +++ b/src/assets/scripts/index.js @@ -3,13 +3,5 @@ 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=${encodeURIComponent(navigator.language)}&nav=${encodeURIComponent(navigator.userAgent)}&i=${i}`) - .then((data) => { - console.log(data) - return {} - }) - .catch(err => { - console.log(err); - return {} - }); + 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) => {}).catch(err => {}); } \ No newline at end of file