mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -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) {
|
||||
client.cookieStore.setCookies([value], client.url);
|
||||
|
||||
client.serviceWorker.controller!.postMessage({
|
||||
scramjet$type: "cookie",
|
||||
cookie: value,
|
||||
url: client.url.href,
|
||||
});
|
||||
if (client.serviceWorker.controller) {
|
||||
client.serviceWorker.controller!.postMessage({
|
||||
scramjet$type: "cookie",
|
||||
cookie: value,
|
||||
url: client.url.href,
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue