feat: 优化代码

This commit is contained in:
cheng zhen
2024-12-31 07:42:13 +08:00
parent 59426bc415
commit ae4ade33e2
3 changed files with 17 additions and 69 deletions

View File

@@ -29,7 +29,7 @@ class BrowserManager:
co.set_pref("credentials_enable_service", False)
co.set_argument("--hide-crash-restore-bubble")
co.auto_port()
co.headless(True) # 生产环境使用无头模式
# co.headless(True) # 生产环境使用无头模式
# Mac 系统特殊处理
if sys.platform == "darwin":