Block maintenanceQueue until cache is ready

This commit is contained in:
awsr
2026-01-28 20:34:09 -08:00
parent 9c1f317980
commit fa0670fcd9
3 changed files with 23 additions and 0 deletions
+4
View File
@@ -36,6 +36,10 @@ async function initIndexDB() {
if (!db) await createDB();
}
function idbIsReady() {
return db !== null;
}
/**
* Reusable setup for handling IDB transactions.
* @param {Object} resources - Required resources for implementation