docs(api.md): fix sample code in API doc, request.url
-> request.url()
(#1889)
This commit is contained in:
parent
f2b6016354
commit
a39d96eae9
@ -2156,7 +2156,7 @@ Example of logging all failed requests:
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
page.on('requestfailed', request => {
|
page.on('requestfailed', request => {
|
||||||
console.log(request.url + ' ' + request.failure().errorText);
|
console.log(request.url() + ' ' + request.failure().errorText);
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user