Selaa lähdekoodia

feat: 设置无头浏览器

cheng zhen 1 vuosi sitten
vanhempi
sitoutus
bd45b1f1a6
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      browser_utils.py

+ 1 - 0
browser_utils.py

@@ -29,6 +29,7 @@ class BrowserManager:
         co.set_pref("credentials_enable_service", False)
         co.set_argument("--hide-crash-restore-bubble")
         co.auto_port()
+        co.headless(True)
 
         # Mac 系统特殊处理
         if sys.platform == "darwin":