aboutsummaryrefslogtreecommitdiff
path: root/src/hooks.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-18 17:03:30 -0500
committermat <github@matdoes.dev>2022-03-18 17:03:30 -0500
commit208ef56da63af362a6f0f80f56129b42a1bbb811 (patch)
tree4c50c9a328f4c5c10b0b937ae0d501e6f99d4893 /src/hooks.ts
parent5c9ccb3ab759526e84079f1c49abb87c995c7021 (diff)
downloadskyblock-stats-208ef56da63af362a6f0f80f56129b42a1bbb811.tar.gz
skyblock-stats-208ef56da63af362a6f0f80f56129b42a1bbb811.tar.bz2
skyblock-stats-208ef56da63af362a6f0f80f56129b42a1bbb811.zip
remove a bunch of console.logs
Diffstat (limited to 'src/hooks.ts')
-rw-r--r--src/hooks.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/hooks.ts b/src/hooks.ts
index ac53658..64c1b9d 100644
--- a/src/hooks.ts
+++ b/src/hooks.ts
@@ -7,25 +7,11 @@ if (!SKYBLOCK_STATS_API_KEY)
export const handle: Handle = async ({ event, resolve }) => {
const cookies = cookie.parse(event.request.headers.get('cookie') || '')
- // event.locals.userid = cookies.userid || uuid();
- console.log(cookies)
event.locals.sid = cookies.sid
const response = await resolve(event)
- // if (!cookies.userid) {
- // // if this is the first time the user has visited this app,
- // // set a cookie so that we recognise them when they return
- // response.headers.set(
- // 'set-cookie',
- // cookie.serialize('userid', event.locals.userid, {
- // path: '/',
- // httpOnly: true
- // })
- // );
- // }
-
return response
}