mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
bring back extra caution
This commit is contained in:
parent
3ded5b20d3
commit
f466266a5f
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user