Skip to content

Commit

Permalink
chore: add syntax highlighting to readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
lino-levan authored Jan 13, 2025
1 parent df1003a commit ace48c8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,13 @@ const anotherBrowser = await launch({ wsEndpoint: browser.wsEndpoint() });

[authenticate example code](https://github.com/lino-levan/astral/blob/main/examples/authenticate.ts):

// Open a new page
const page = await browser.newPage("https://httpbin.org/basic-auth/user/passwd");
```ts
// Open a new page
const page = await browser.newPage("https://httpbin.org/basic-auth/user/passwd");

// Provide credentials for HTTP authentication.
await page.authenticate({ username: "user", password: "passwd" });
// Provide credentials for HTTP authentication.
await page.authenticate({ username: "user", password: "passwd" });
```

## BYOB - Bring Your Own Browser

Expand Down

0 comments on commit ace48c8

Please sign in to comment.