forked from mystiq/hydrogen-web
add comment
This commit is contained in:
parent
163ca12854
commit
7627a2bda2
1 changed files with 2 additions and 0 deletions
|
@ -129,6 +129,8 @@ export class Store extends QueryTarget {
|
|||
|
||||
async add(value) {
|
||||
try {
|
||||
// this will catch both the sync error already mapped
|
||||
// in the QueryTargetWrapper above, and also the async request errors, which are still DOMException's
|
||||
return await reqAsPromise(this._idbStore.add(value));
|
||||
} catch(err) {
|
||||
const originalErr = err.cause;
|
||||
|
|
Loading…
Reference in a new issue