mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
woops
This commit is contained in:
parent
71fd6f12ef
commit
4ac0fce534
1 changed files with 6 additions and 5 deletions
|
@ -142,11 +142,12 @@ async function handleResponse(
|
||||||
|
|
||||||
let maybeHeaders = responseHeaders["set-cookie"] || [];
|
let maybeHeaders = responseHeaders["set-cookie"] || [];
|
||||||
for (const cookie in maybeHeaders) {
|
for (const cookie in maybeHeaders) {
|
||||||
client.postMessage({
|
if (client)
|
||||||
scramjet$type: "cookie",
|
client.postMessage({
|
||||||
cookie,
|
scramjet$type: "cookie",
|
||||||
url: url.href,
|
cookie,
|
||||||
} as MessageW2C);
|
url: url.href,
|
||||||
|
} as MessageW2C);
|
||||||
}
|
}
|
||||||
|
|
||||||
await cookieStore.setCookies(
|
await cookieStore.setCookies(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue