Protect toolbox data after IndexedDB startup failures
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s

This commit is contained in:
Shinuwa 2026-09-12 23:05:16 +02:00
parent b53c7c17c8
commit 09a2d4b71a
13 changed files with 242 additions and 5 deletions

View file

@ -19,6 +19,9 @@ function openDatabase() {
request.onsuccess = () => resolve(request.result);
request.onerror = () => reject(request.error);
}).catch((error) => {
dbPromise = undefined;
throw error;
});
return dbPromise;
}