File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,9 @@ async function getBrowser(
76
76
browserbaseSessionCreateParams ?: Browserbase . Sessions . SessionCreateParams ,
77
77
browserbaseSessionID ?: string ,
78
78
localBrowserLaunchOptions ?: LocalBrowserLaunchOptions ,
79
+ intEnv : "LOCAL" | "BROWSERBASE" = "LOCAL" ,
79
80
) : Promise < BrowserResult > {
80
- if ( env === "BROWSERBASE" ) {
81
+ if ( intEnv === "BROWSERBASE" ) {
81
82
if ( ! apiKey ) {
82
83
logger ( {
83
84
category : "init" ,
@@ -677,6 +678,7 @@ export class Stagehand {
677
678
this . browserbaseSessionCreateParams ,
678
679
this . browserbaseSessionID ,
679
680
this . localBrowserLaunchOptions ,
681
+ this . intEnv ,
680
682
) . catch ( ( e ) => {
681
683
this . stagehandLogger . error ( "Error in init:" , { error : String ( e ) } ) ;
682
684
const br : BrowserResult = {
You can’t perform that action at this time.
0 commit comments