mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-16 07:30:02 -04:00
add edge case check to CookieStore.load
This commit is contained in:
parent
13e55efa83
commit
559fc211de
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ export class CookieStore {
|
|||
}
|
||||
|
||||
load(cookies: string) {
|
||||
if (typeof cookies === "object") return cookies;
|
||||
this.cookies = JSON.parse(cookies);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue