bring back extra caution
This commit is contained in:
parent
3ded5b20d3
commit
f466266a5f
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@ function _sourceName(source: IDBIndex | IDBObjectStore): string {
|
||||||
|
|
||||||
function _sourceDatabase(source: IDBIndex | IDBObjectStore): string {
|
function _sourceDatabase(source: IDBIndex | IDBObjectStore): string {
|
||||||
return "objectStore" in source ?
|
return "objectStore" in source ?
|
||||||
source.objectStore.transaction.db.name :
|
source.objectStore?.transaction?.db?.name :
|
||||||
source.transaction.db.name;
|
source.transaction?.db?.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class IDBError extends StorageError {
|
export class IDBError extends StorageError {
|
||||||
|
|
Reference in a new issue