Browser.setContentsSizeSet size of the browser contents resizing browser window as necessary.
| Name | Type | Description |
|---|---|---|
windowId | WindowID | Browser window id. |
width (optional) | integer | The window contents width in DIP. Assumes current width if omitted. Must be specified if 'height' is omitted. |
height (optional) | integer | The window contents height in DIP. Assumes current height if omitted. Must be specified if 'width' is omitted. |
{
"id": 1,
"method": "Browser.setContentsSize",
"params": {
"windowId": "windowId-value"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Browser.setContentsSize', {"windowId": "windowId-value"});
console.log(result);