← Back to IndexedDB domain
IndexedDB.requestDatabaseNames
Requests database names for given security origin.
Domain: IndexedDB
experimental
Parameters
| Name | Type | Description |
securityOrigin (optional) | string | At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
Security origin. |
storageKey (optional) | string | Storage key. |
storageBucket (optional) | Storage.StorageBucket | Storage bucket. If not specified, it uses the default bucket. |
Returns
| Name | Type | Description |
databaseNames | array | Database names for origin. |
Example Request
{
"id": 1,
"method": "IndexedDB.requestDatabaseNames"
}
Example Response
{
"id": 1,
"result": {
"databaseNames": []
}
}
Usage in Node.js
const result = await send('IndexedDB.requestDatabaseNames');
console.log(result);
// {"databaseNames": []}