1
0
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:
Kegan Dougal
2017-01-13 17:57:41 +00:00
parent 8bcb048f53
commit e159e504fa

View File

@@ -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);