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:
Pagwin 2025-09-03 17:07:07 -04:00
parent 15bc0ca126
commit b8b5711fca

View file

@ -32,10 +32,8 @@ async function handle_redirect(req){
db_req.onsuccess = (event) => { db_req.onsuccess = (event) => {
const db = event.target.result; const db = event.target.result;
const transaction = db.transaction("light-dark-store", "readwrite"); const transaction = db.transaction("light-dark-store", "readwrite");
transaction.oncomplete = res;
toggleLightDark(transaction) toggleLightDark(transaction)
.then(transaction.commit.bind(transaction))
.then(res); .then(res);
}; };
}); });