mirror of
https://github.com/vladmandic/automatic
synced 2026-09-09 06:18:43 +02:00
Block maintenanceQueue until cache is ready
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user