diff --git a/util.ts b/util.ts index 516c11d..e32dd23 100644 --- a/util.ts +++ b/util.ts @@ -77,7 +77,7 @@ export function useEmitter( export function parseCookie(cookie: string): Record { return cookie .split(';') - .map((l) => l.split('=')) + .map((l) => [l.slice(0, l.indexOf('=')), l.slice(l.indexOf('=') + 1)]) .reduce( (acc, [key, value]) => ({ ...acc,