You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-23 22:42:10 +03:00
Use ev.target.result for consistency
This commit is contained in:
@@ -45,7 +45,7 @@ module.exports.IndexedDBStore.prototype = {
|
||||
}
|
||||
const req = this.indexedDB.open("matrix-js-sdk", VERSION);
|
||||
req.onupgradeneeded = (ev) => {
|
||||
const db = req.result;
|
||||
const db = ev.target.result;
|
||||
const oldVersion = ev.oldVersion;
|
||||
if (oldVersion < 1) { // The database did not previously exist.
|
||||
createDatabase(db);
|
||||
|
||||
Reference in New Issue
Block a user