feat: Page.setBypassServiceWorker (#10229)

Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
This commit is contained in:
Junyan
2023-05-23 19:51:32 +08:00
committed by GitHub
parent 640422680f
commit 81f73a55f3
7 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
---
sidebar_label: Page.setBypassServiceWorker
---
# Page.setBypassServiceWorker() method
Toggles ignoring of service worker for each request.
#### Signature:
```typescript
class Page {
setBypassServiceWorker(bypass: boolean): Promise<void>;
}
```
## Parameters
| Parameter | Type | Description |
| --------- | ------- | ------------------------------------------------------- |
| bypass | boolean | Whether to bypass service worker and load from network. |
**Returns:**
Promise&lt;void&gt;