bring back extra caution

This commit is contained in:
Bruno Windels 2021-08-31 08:16:37 +02:00
parent 3ded5b20d3
commit f466266a5f

View file

@ -25,8 +25,8 @@ function _sourceName(source: IDBIndex | IDBObjectStore): string {
function _sourceDatabase(source: IDBIndex | IDBObjectStore): string {
return "objectStore" in source ?
source.objectStore.transaction.db.name :
source.transaction.db.name;
source.objectStore?.transaction?.db?.name :
source.transaction?.db?.name;
}
export class IDBError extends StorageError {