Skip to content

Commit

Permalink
docs(api.md): fix sample code in API doc, request.url -> `request.u…
Browse files Browse the repository at this point in the history
…rl()` (puppeteer#1889)
  • Loading branch information
bambooom authored and aslushnikov committed Jan 25, 2018
1 parent f2b6016 commit a39d96e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2156,7 +2156,7 @@ Example of logging all failed requests:

```js
page.on('requestfailed', request => {
console.log(request.url + ' ' + request.failure().errorText);
console.log(request.url() + ' ' + request.failure().errorText);
});
```

Expand Down

0 comments on commit a39d96e

Please sign in to comment.