Skip to content

Commit 7fb47f9

Browse files
authored
Update README.md
1 parent 7962b25 commit 7fb47f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ Using it along with other interception methods:
6565
```js
6666
await page.setRequestInterception(true);
6767
page.on('request', async request => {
68-
if (req.resourceType() === 'image') {
69-
req.abort();
68+
if (request.resourceType() === 'image') {
69+
request.abort();
7070
} else {
7171
await useProxy(request, 'socks4://127.0.0.1:1080');
7272
}

0 commit comments

Comments
 (0)