mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +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) {
|
openKeyCursor(...params) {
|
||||||
|
// not supported on Edge 15
|
||||||
|
if (!this._qt.openKeyCursor) {
|
||||||
|
return this.openCursor(...params);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
return this._qt.openKeyCursor(...params);
|
return this._qt.openKeyCursor(...params);
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user