We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21c6578 commit 451f446Copy full SHA for 451f446
browserbase/src/sessionManager.ts
@@ -92,15 +92,15 @@ export async function createNewBrowserSession(
92
projectId: config.browserbaseProjectId!,
93
proxies: config.proxies,
94
browserSettings: {
95
- ...(config.viewPort ? { viewport: {
96
- width: config.viewPort?.browserWidth,
97
- height: config.viewPort?.browserHeight,
98
- }} : {}),
99
- ...(config.context?.contextId ? { context: {
100
- id: config.context?.contextId,
101
- persist: config.context?.persist ?? true, // Default to true if not specified
102
- }} : {})
103
- },
+ viewport: {
+ width: config.viewPort?.browserWidth ?? 1024,
+ height: config.viewPort?.browserHeight ?? 768,
+ },
+ context: {
+ id: config.context?.contextId ?? "",
+ persist: config.context?.persist ?? true,
+ }
104
};
105
106
try {
0 commit comments