mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
fix cwookies type shit
This commit is contained in:
parent
8666196db3
commit
e057519e83
1 changed files with 7 additions and 5 deletions
|
@ -17,11 +17,13 @@ export default function (client: ScramjetClient, self: typeof window) {
|
||||||
set(ctx, value: string) {
|
set(ctx, value: string) {
|
||||||
client.cookieStore.setCookies([value], client.url);
|
client.cookieStore.setCookies([value], client.url);
|
||||||
|
|
||||||
|
if (client.serviceWorker.controller) {
|
||||||
client.serviceWorker.controller!.postMessage({
|
client.serviceWorker.controller!.postMessage({
|
||||||
scramjet$type: "cookie",
|
scramjet$type: "cookie",
|
||||||
cookie: value,
|
cookie: value,
|
||||||
url: client.url.href,
|
url: client.url.href,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue