mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
add comment
This commit is contained in:
parent
163ca12854
commit
7627a2bda2
@ -129,6 +129,8 @@ export class Store extends QueryTarget {
|
|||||||
|
|
||||||
async add(value) {
|
async add(value) {
|
||||||
try {
|
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));
|
return await reqAsPromise(this._idbStore.add(value));
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
const originalErr = err.cause;
|
const originalErr = err.cause;
|
||||||
|
Loading…
Reference in New Issue
Block a user