docs: fix serviceWorkers formatting (#14845)

This commit is contained in:
Ross Wollman 2022-06-13 15:18:24 -07:00 committed by GitHub
parent 88664c39c9
commit 61536098be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 28 deletions

View File

@ -644,10 +644,10 @@ See [Locator] to learn more about the strict mode.
## context-option-service-worker-policy ## context-option-service-worker-policy
- `serviceWorkers` <[ServiceWorkerPolicy]<"allow"|"block">> - `serviceWorkers` <[ServiceWorkerPolicy]<"allow"|"block">>
* `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered by sites. Whether to allow sites to register Service workers. Defaults to `'allow'`.
* `"block"`: Playwright will block all registration of Service Workers. * `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
* `'block'`: Playwright will block all registration of Service Workers.
Defaults to `"allow"`.
## select-options-values ## select-options-values
* langs: java, js, csharp * langs: java, js, csharp

View File

@ -10372,11 +10372,9 @@ export interface BrowserType<Unused = {}> {
}; };
/** /**
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered * Whether to allow sites to register Service workers. Defaults to `'allow'`.
* by sites. * - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
* - `"block"`: Playwright will block all registration of Service Workers. * - `'block'`: Playwright will block all registration of Service Workers.
*
* Defaults to `"allow"`.
*/ */
serviceWorkers?: "allow"|"block"; serviceWorkers?: "allow"|"block";
@ -11537,11 +11535,9 @@ export interface AndroidDevice {
}; };
/** /**
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered * Whether to allow sites to register Service workers. Defaults to `'allow'`.
* by sites. * - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
* - `"block"`: Playwright will block all registration of Service Workers. * - `'block'`: Playwright will block all registration of Service Workers.
*
* Defaults to `"allow"`.
*/ */
serviceWorkers?: "allow"|"block"; serviceWorkers?: "allow"|"block";
@ -13079,11 +13075,9 @@ export interface Browser extends EventEmitter {
}; };
/** /**
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered * Whether to allow sites to register Service workers. Defaults to `'allow'`.
* by sites. * - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
* - `"block"`: Playwright will block all registration of Service Workers. * - `'block'`: Playwright will block all registration of Service Workers.
*
* Defaults to `"allow"`.
*/ */
serviceWorkers?: "allow"|"block"; serviceWorkers?: "allow"|"block";
@ -15599,11 +15593,9 @@ export interface BrowserContextOptions {
}; };
/** /**
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered * Whether to allow sites to register Service workers. Defaults to `'allow'`.
* by sites. * - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
* - `"block"`: Playwright will block all registration of Service Workers. * - `'block'`: Playwright will block all registration of Service Workers.
*
* Defaults to `"allow"`.
*/ */
serviceWorkers?: "allow"|"block"; serviceWorkers?: "allow"|"block";

View File

@ -2800,11 +2800,9 @@ export interface PlaywrightTestOptions {
*/ */
navigationTimeout: number | undefined; navigationTimeout: number | undefined;
/** /**
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered * Whether to allow sites to register Service workers. Defaults to `'allow'`.
* by sites. * - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
* - `"block"`: Playwright will block all registration of Service Workers. * - `'block'`: Playwright will block all registration of Service Workers.
*
* Defaults to `"allow"`.
*/ */
serviceWorkers: ServiceWorkerPolicy | undefined; serviceWorkers: ServiceWorkerPolicy | undefined;
} }