mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +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) {
|
||||
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 New Issue
Block a user