From 942dc522b48e685b60a5d712fbdf144c2eaa6659 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Fri, 11 Dec 2020 20:47:58 +0200 Subject: [PATCH] Readd resolving on blocked dbs, add fixed eth provider --- packages/concordia-app/package.json | 2 +- packages/concordia-app/src/utils/indexedDB/indexedDBUtils.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/concordia-app/package.json b/packages/concordia-app/package.json index 9b842e9..6645ee2 100644 --- a/packages/concordia-app/package.json +++ b/packages/concordia-app/package.json @@ -26,7 +26,7 @@ "dependencies": { "@ezerous/breeze": "~0.4.0", "@ezerous/drizzle": "~0.4.1", - "@ezerous/eth-identity-provider": "^0.1.0", + "@ezerous/eth-identity-provider": "~0.1.2", "@reduxjs/toolkit": "~1.4.0", "@welldone-software/why-did-you-render": "^6.0.0-rc.1", "concordia-contracts": "~0.1.0", diff --git a/packages/concordia-app/src/utils/indexedDB/indexedDBUtils.js b/packages/concordia-app/src/utils/indexedDB/indexedDBUtils.js index e348dc3..bc4b3be 100644 --- a/packages/concordia-app/src/utils/indexedDB/indexedDBUtils.js +++ b/packages/concordia-app/src/utils/indexedDB/indexedDBUtils.js @@ -11,6 +11,7 @@ const purgeIndexedDBs = async () => { databases.map((db) => new Promise( (resolve, reject) => { const request = indexedDB.deleteDatabase(db.name); + request.onblocked = resolve; request.onsuccess = resolve; request.onerror = reject; },