add comment

This commit is contained in:
Bruno Windels 2020-09-29 10:53:02 +02:00
parent 163ca12854
commit 7627a2bda2

View file

@ -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;