fix 7
This commit is contained in:
parent
499079fcf2
commit
4b36f5372c
1 changed files with 1 additions and 2 deletions
|
@ -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)};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue