Skip to content

Commit

Permalink
docs: add async keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats authored Sep 11, 2024
1 parent 7d0f07a commit 7b80314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ console.log(browserContext.id)
It returns a higher-order function as convenient way to interact with a page:

```js
const getTitle = browserless.withPage((page, goto) => opts => {
const getTitle = browserless.withPage((page, goto) => async opts => {
const result = await goto(page, opts)
return page.title()
})
Expand Down

0 comments on commit 7b80314

Please sign in to comment.