From 6f527fd2e04ce36fb19d57de0bac36ea122ac46e Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Sun, 15 Sep 2019 12:24:46 +0200 Subject: [PATCH] use openCursor where openKeyCursor is not supported --- src/matrix/storage/idb/store.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/matrix/storage/idb/store.js b/src/matrix/storage/idb/store.js index 1b4d3733..3634b42f 100644 --- a/src/matrix/storage/idb/store.js +++ b/src/matrix/storage/idb/store.js @@ -12,6 +12,10 @@ class QueryTargetWrapper { } openKeyCursor(...params) { + // not supported on Edge 15 + if (!this._qt.openKeyCursor) { + return this.openCursor(...params); + } try { return this._qt.openKeyCursor(...params); } catch(err) {