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.oncomplete = res;
transaction.objectStore("light-dark-store", "readwrite"); transaction.objectStore("light-dark-store", "readwrite");
toggleLightDark(transaction); toggleLightDark(transaction)
transaction.commit(); .then(transaction.commit.bind(transaction))
.then(res);
}; };
}); });
await Promise.all([up_promise, suc_promise]); await Promise.all([up_promise, suc_promise]);