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:
wearrrrr 2024-10-26 22:29:51 -05:00
parent 909fd318d7
commit 990b9c8f56

View file

@ -49,7 +49,7 @@ export class ScramjetServiceWorker extends EventTarget {
const res = db.result;
const tx = res.transaction("cookies", "readwrite");
const store = tx.objectStore("cookies");
store.put(this.cookieStore.dump(), "cookies");
store.put(JSON.parse(this.cookieStore.dump()), "cookies");
}
});
}