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(
92
92
projectId : config . browserbaseProjectId ! ,
93
93
proxies : config . proxies ,
94
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
- } ,
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
+ }
104
104
} ;
105
105
106
106
try {
You can’t perform that action at this time.
0 commit comments