Skip to content

Commit 8d10b50

Browse files
committed
docs: avoid using defaultContext() in the example
1 parent 6493d82 commit 8d10b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ exports.handler = async (event, context) => {
2424

2525
try {
2626
const browser = await playwright.launchChromium();
27-
const context = await browser.defaultContext();
27+
const context = await browser.newContext();
2828

2929
const page = await context.newPage();
3030
await page.goto(event.url || 'https://example.com');

0 commit comments

Comments
 (0)