mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
no need to capture req here
This commit is contained in:
parent
d4d7adc7fc
commit
184480ad36
@ -81,8 +81,9 @@ export function reqAsPromise(req) {
|
||||
resolve(event.target.result);
|
||||
needsSyncPromise && Promise._flush && Promise._flush();
|
||||
});
|
||||
req.addEventListener("error", () => {
|
||||
reject(new IDBRequestError(req));
|
||||
req.addEventListener("error", event => {
|
||||
const error = new IDBRequestError(event.target);
|
||||
reject(error);
|
||||
needsSyncPromise && Promise._flush && Promise._flush();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user