there is some really dumb indexDB behavior causing this problem and I will complain about it in the blog post I swear
This commit is contained in:
parent
15bc0ca126
commit
b8b5711fca
1 changed files with 0 additions and 2 deletions
|
@ -32,10 +32,8 @@ async function handle_redirect(req){
|
|||
db_req.onsuccess = (event) => {
|
||||
const db = event.target.result;
|
||||
const transaction = db.transaction("light-dark-store", "readwrite");
|
||||
transaction.oncomplete = res;
|
||||
|
||||
toggleLightDark(transaction)
|
||||
.then(transaction.commit.bind(transaction))
|
||||
.then(res);
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue