oops async
This commit is contained in:
parent
121ac0d104
commit
0d2cc5a354
1 changed files with 3 additions and 2 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Reference in a new issue