Skip to content

Commit a00282c

Browse files
authored
refactor: Remove unused viewport config options (#61)
* refactor: Remove unused viewport config options * feat: add viewport config to browser options
1 parent 7576008 commit a00282c

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

templates/typescript/gemini-cua/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ async function runStagehandTask(invocationId?: string): Promise<SearchQueryOutpu
3434

3535
const browserOptions = {
3636
stealth: true,
37-
// viewport: {
38-
// width: 1440,
39-
// height: 900,
40-
// refresh_rate: 25
41-
// },
37+
viewport: {
38+
width: 1440,
39+
height: 900,
40+
refresh_rate: 25
41+
},
4242
...(invocationId && { invocation_id: invocationId })
4343
};
4444

templates/typescript/magnitude/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ app.action<UrlInput, UrlsOutput>(
5858
},
5959
browser: {
6060
cdp: kernelBrowser.cdp_ws_url,
61-
contextOptions: {
62-
viewport: { width: 1024, height: 768 }
63-
}
6461
},
6562
virtualScreenDimensions: { width: 1024, height: 768 }
6663
});

0 commit comments

Comments
 (0)