mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
use openCursor where openKeyCursor is not supported
This commit is contained in:
parent
bbf6943455
commit
6f527fd2e0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user