← Back to Storage domain
Storage.getStorageKeyForFrame
Returns a storage key given a frame id.
Deprecated. Please use Storage.getStorageKey instead.
Domain: Storage
deprecated
Parameters
| Name | Type | Description |
frameId | Page.FrameId | |
Returns
| Name | Type | Description |
storageKey | SerializedStorageKey | |
Example Request
{
"id": 1,
"method": "Storage.getStorageKeyForFrame",
"params": {
"frameId": "ABC123DEF456"
}
}
Example Response
{
"id": 1,
"result": {
"storageKey": "storageKey-value"
}
}
Usage in Node.js
const result = await send('Storage.getStorageKeyForFrame', {"frameId": "ABC123DEF456"});
console.log(result);
// {"storageKey": "storageKey-value"}