Browse Source

Readd resolving on blocked dbs, add fixed eth provider

develop
Ezerous 4 years ago
parent
commit
942dc522b4
  1. 2
      packages/concordia-app/package.json
  2. 1
      packages/concordia-app/src/utils/indexedDB/indexedDBUtils.js

2
packages/concordia-app/package.json

@ -26,7 +26,7 @@
"dependencies": { "dependencies": {
"@ezerous/breeze": "~0.4.0", "@ezerous/breeze": "~0.4.0",
"@ezerous/drizzle": "~0.4.1", "@ezerous/drizzle": "~0.4.1",
"@ezerous/eth-identity-provider": "^0.1.0", "@ezerous/eth-identity-provider": "~0.1.2",
"@reduxjs/toolkit": "~1.4.0", "@reduxjs/toolkit": "~1.4.0",
"@welldone-software/why-did-you-render": "^6.0.0-rc.1", "@welldone-software/why-did-you-render": "^6.0.0-rc.1",
"concordia-contracts": "~0.1.0", "concordia-contracts": "~0.1.0",

1
packages/concordia-app/src/utils/indexedDB/indexedDBUtils.js

@ -11,6 +11,7 @@ const purgeIndexedDBs = async () => {
databases.map((db) => new Promise( databases.map((db) => new Promise(
(resolve, reject) => { (resolve, reject) => {
const request = indexedDB.deleteDatabase(db.name); const request = indexedDB.deleteDatabase(db.name);
request.onblocked = resolve;
request.onsuccess = resolve; request.onsuccess = resolve;
request.onerror = reject; request.onerror = reject;
}, },

Loading…
Cancel
Save