Type the crypto, settings, and component any sites. [skip build]
This commit is contained in:
@@ -118,9 +118,9 @@ const getAllIndexedDBNames = async (): Promise<string[]> => {
|
||||
}, 2000);
|
||||
});
|
||||
|
||||
const databasesPromise = (globalThis.indexedDB as any)
|
||||
const databasesPromise = globalThis.indexedDB
|
||||
.databases()
|
||||
.then((dbs: any[]) => dbs.map((db: any) => db.name).filter(Boolean));
|
||||
.then((dbs) => dbs.map((db) => db.name).filter((name) => typeof name === 'string'));
|
||||
|
||||
return await Promise.race([databasesPromise, timeoutPromise]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user