oops async

This commit is contained in:
Pagwin 2025-09-02 23:25:28 -04:00
parent 121ac0d104
commit 0d2cc5a354

View file

@ -34,8 +34,9 @@ async function handle_redirect(req){
transaction.oncomplete = res;
transaction.objectStore("light-dark-store", "readwrite");
toggleLightDark(transaction);
transaction.commit();
toggleLightDark(transaction)
.then(transaction.commit.bind(transaction))
.then(res);
};
});
await Promise.all([up_promise, suc_promise]);