1
0
mirror of https://github.com/XFox111/my-website.git synced 2026-04-22 07:28:01 +03:00

fix: incorrect cookie value return

This commit is contained in:
2025-09-01 19:18:41 +00:00
parent 5f111c5e46
commit 8e95bdbc3d
+1 -1
View File
@@ -35,7 +35,7 @@ function getCookie(name: string): string | undefined
for (const cookie of cookies)
if (cookie.trim().startsWith(cookieName))
return cookie.substring(cookieName.length);
return cookie.trim().substring(cookieName.length);
return undefined;
}