Update fun.py
Browse files
fun.py
CHANGED
@@ -62,6 +62,7 @@ async def open_browser(request: Request):
|
|
62 |
launch_args = data.get("launchArgs", "")
|
63 |
args = [CHROME_PATH, f"--remote-debugging-port={port}", f"--user-data-dir={profile_dir}"]
|
64 |
# 加入默认参数
|
|
|
65 |
args.extend(get_default_launch_args())
|
66 |
if launch_args:
|
67 |
# 拆分参数并去重,保留顺序
|
@@ -271,4 +272,4 @@ async def cdp_native_ws_proxy(websocket: WebSocket, tab_type: str, target_id: st
|
|
271 |
|
272 |
|
273 |
if __name__ == "__main__":
|
274 |
-
uvicorn.run("
|
|
|
62 |
launch_args = data.get("launchArgs", "")
|
63 |
args = [CHROME_PATH, f"--remote-debugging-port={port}", f"--user-data-dir={profile_dir}"]
|
64 |
# 加入默认参数
|
65 |
+
logger.info(f"使用默认参数: {get_default_launch_args()}")
|
66 |
args.extend(get_default_launch_args())
|
67 |
if launch_args:
|
68 |
# 拆分参数并去重,保留顺序
|
|
|
272 |
|
273 |
|
274 |
if __name__ == "__main__":
|
275 |
+
uvicorn.run("api:app", host="0.0.0.0", port=8000, reload=True)
|