Skip to content

Commit 33ca5e0

Browse files
authored
Merge pull request #407 from vvincent1234/fix/cdp
remove cdp url in webui
2 parents 5d42ac1 + 499f5bf commit 33ca5e0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

webui.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ async def run_org_agent(
316316
config=BrowserContextConfig(
317317
trace_path=save_trace_path if save_trace_path else None,
318318
save_recording_path=save_recording_path if save_recording_path else None,
319-
cdp_url=cdp_url,
320319
no_viewport=False,
321320
browser_window_size=BrowserContextWindowSize(
322321
width=window_w, height=window_h
@@ -407,7 +406,7 @@ async def run_custom_agent(
407406

408407
# Initialize global browser if needed
409408
#if chrome_cdp not empty string nor None
410-
if ((_global_browser is None) or (cdp_url and cdp_url != "" and cdp_url != None)) :
409+
if (_global_browser is None) or (cdp_url and cdp_url != "" and cdp_url != None):
411410
_global_browser = CustomBrowser(
412411
config=BrowserConfig(
413412
headless=headless,
@@ -418,7 +417,7 @@ async def run_custom_agent(
418417
)
419418
)
420419

421-
if (_global_browser_context is None or (chrome_cdp and cdp_url != "" and cdp_url != None)):
420+
if _global_browser_context is None or (chrome_cdp and cdp_url != "" and cdp_url != None):
422421
_global_browser_context = await _global_browser.new_context(
423422
config=BrowserContextConfig(
424423
trace_path=save_trace_path if save_trace_path else None,

0 commit comments

Comments
 (0)