mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
Make cookies dump to idb as an object instead of a string, makes debugging easier, adds a small bit of overhead.
This commit is contained in:
parent
909fd318d7
commit
990b9c8f56
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ export class ScramjetServiceWorker extends EventTarget {
|
||||||
const res = db.result;
|
const res = db.result;
|
||||||
const tx = res.transaction("cookies", "readwrite");
|
const tx = res.transaction("cookies", "readwrite");
|
||||||
const store = tx.objectStore("cookies");
|
const store = tx.objectStore("cookies");
|
||||||
store.put(this.cookieStore.dump(), "cookies");
|
store.put(JSON.parse(this.cookieStore.dump()), "cookies");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue