File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -92,15 +92,15 @@ export async function createNewBrowserSession(
9292 projectId : config . browserbaseProjectId ! ,
9393 proxies : config . proxies ,
9494 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- } ,
95+ viewport : {
96+ width : config . viewPort ?. browserWidth ?? 1024 ,
97+ height : config . viewPort ?. browserHeight ?? 768 ,
98+ } ,
99+ context : {
100+ id : config . context ?. contextId ?? "" ,
101+ persist : config . context ?. persist ?? true ,
102+ }
103+ }
104104 } ;
105105
106106 try {
You can’t perform that action at this time.
0 commit comments