docs(new): add TSDoc comments to BrowserContext (#6066)

This commit is contained in:
Tim van der Lippe
2020-06-23 06:21:01 +01:00
committed by Mathias Bynens
parent ccae54644c
commit 4659ee8daa
16 changed files with 270 additions and 157 deletions

View File

@@ -14,10 +14,19 @@ overridePermissions(origin: string, permissions: Protocol.Browser.PermissionType
| Parameter | Type | Description |
| --- | --- | --- |
| origin | string | |
| permissions | Protocol.Browser.PermissionType\[\] | |
| origin | string | The origin to grant permissions to, e.g. "https://example.com". |
| permissions | Protocol.Browser.PermissionType\[\] | An array of permissions to grant. All permissions that are not listed here will be automatically denied. |
<b>Returns:</b>
Promise&lt;void&gt;
## Example
```js
const context = browser.defaultBrowserContext();
await context.overridePermissions('https://html5demos.com', ['geolocation']);
```