1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-23 22:42:10 +03:00

Fix another round of test failures

'blocked' is *not* a fatal situation when opening or deleting databases.
This commit is contained in:
Richard van der Hoff
2017-06-20 17:36:35 +01:00
parent db66023102
commit 7fcccad0ae

View File

@@ -72,9 +72,9 @@ export default class IndexedDBCryptoStore {
};
req.onblocked = () => {
reject(new Error(
"unable to upgrade indexeddb because it is open elsewhere",
));
console.log(
`can't yet open IndexedDBCryptoStore because it is open elsewhere`,
);
};
req.onerror = (ev) => {
@@ -110,9 +110,9 @@ export default class IndexedDBCryptoStore {
const req = this._indexedDB.deleteDatabase(this._dbName);
req.onblocked = () => {
reject(new Error(
"unable to delete indexeddb because it is open elsewhere",
));
console.log(
`can't yet delete IndexedDBCryptoStore because it is open elsewhere`,
);
};
req.onerror = (ev) => {