Type the crypto, settings, and component any sites. [skip build]
This commit is contained in:
1 parent
6c8a085ae1
commit
9d17b14a9e
26 files changed
+68
-49
No files matched your search
@@ -68,12 +68,12 @@ const deleteAllMatrixDatabases = async (): Promise<void> => {
|
||||
// Try to get all databases if the API is available
|
||||
try {
|
||||
if ('databases' in indexedDB) {
|
||||
const allDbs = await (indexedDB as any).databases();
|
||||
const allDbs = await indexedDB.databases();
|
||||
const matrixDbs = allDbs
|
||||
.map((db: any) => db.name)
|
||||
.map((db) => db.name)
|
||||
.filter(
|
||||
(name: string) =>
|
||||
name &&
|
||||
(name): name is string =>
|
||||
typeof name === 'string' &&
|
||||
(name.startsWith('matrix-js-sdk') ||
|
||||
name.includes('@@') ||
|
||||
name.startsWith('sync@@') ||
|
||||
|
||||
Reference in new issue
Block a user