From 1c7e9ac79a4f54468357f1c7ea8eb10d4d91322e Mon Sep 17 00:00:00 2001 From: cheng zhen Date: Sun, 29 Dec 2024 18:19:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=AF=E7=94=A8=E6=97=A0=E5=A4=B4?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- browser_utils.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/browser_utils.py b/browser_utils.py index 822655b..90d42c2 100644 --- a/browser_utils.py +++ b/browser_utils.py @@ -29,12 +29,7 @@ class BrowserManager: co.set_pref("credentials_enable_service", False) co.set_argument("--hide-crash-restore-bubble") co.auto_port() - - # 只在开发环境启用无头模式 - if os.environ.get("ENV") == "development": - co.headless(True) - else: - co.headless(False) + co.headless(True) # 生产环境使用无头模式 # Mac 系统特殊处理 if sys.platform == "darwin":