This commit is contained in:
Pagwin 2025-09-02 16:43:53 -04:00
parent 499079fcf2
commit 4b36f5372c

View file

@ -85,8 +85,7 @@ async function handle_html(req, resp, body){
const transaction = db.transaction("light-dark-store"); const transaction = db.transaction("light-dark-store");
transaction.oncomplete = res; transaction.oncomplete = res;
transaction.objectStore("light-dark-store", "readwrite"); const obj_store = transaction.objectStore("light-dark-store", "read");
toggleLightDark(transaction);
const grab = obj_store.get(1); const grab = obj_store.get(1);
grab.onsuccess = (event) => {res(!!event.result)}; grab.onsuccess = (event) => {res(!!event.result)};
}; };