Skip to content

Commit 242167d

Browse files
maxbeattystainless-bot
authored andcommitted
fix: update example (#38)
1 parent 7615211 commit 242167d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/playwright-basic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const bb = new Browserbase({
1818
const browser = await chromium.connectOverCDP(session.connectUrl);
1919

2020
// Getting the default context to ensure the sessions are recorded.
21-
const defaultContext = browser.contexts()[0];
21+
const [defaultContext] = browser.contexts();
2222
const page = defaultContext?.pages()[0];
2323

2424
await page?.goto('https://browserbase.com/');

0 commit comments

Comments
 (0)