更改获取账号配置更改为无头模式

This commit is contained in:
work
2025-07-17 16:27:59 +08:00
parent 881725ac19
commit ebf6535141

View File

@@ -1053,7 +1053,7 @@ def playwright_get_user_profile(cookies, username=None):
with sync_playwright() as playwright:
update_windows_distinguish()
browser = playwright.chromium.launch(
headless=False, args=['--start-maximized'], executable_path=path
headless=True, args=['--start-maximized'], executable_path=path
)
context = browser.new_context(no_viewport=True)
context.add_cookies(parse_cookies(cookies))