From 07fcf7e75b6ccd4d14f5c2985af3ef0844708100 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 29 Sep 2020 09:43:25 +0200 Subject: [PATCH] also do this in try catch --- src/matrix/storage/idb/Store.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/matrix/storage/idb/Store.js b/src/matrix/storage/idb/Store.js index b26582bc..08123ccb 100644 --- a/src/matrix/storage/idb/Store.js +++ b/src/matrix/storage/idb/Store.js @@ -35,11 +35,11 @@ class QueryTargetWrapper { } openKeyCursor(...params) { - // not supported on Edge 15 - if (!this._qt.openKeyCursor) { - return this.openCursor(...params); - } try { + // not supported on Edge 15 + if (!this._qt.openKeyCursor) { + return this.openCursor(...params); + } return this._qt.openKeyCursor(...params); } catch(err) { throw new IDBRequestAttemptError("openKeyCursor", this._qt, err, params);