From e66f2c19fc9753f6e27eb00715bf1beedaf7457e Mon Sep 17 00:00:00 2001 From: Josef Prochazka Date: Tue, 10 Dec 2024 09:07:27 +0100 Subject: [PATCH] Fix get_screen_cons handling headless incorrectly. --- pythonlib/camoufox/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonlib/camoufox/utils.py b/pythonlib/camoufox/utils.py index 6da5260..9278732 100644 --- a/pythonlib/camoufox/utils.py +++ b/pythonlib/camoufox/utils.py @@ -157,7 +157,7 @@ def get_screen_cons(headless: Optional[bool] = None) -> Optional[Screen]: """ Determines a sane viewport size for Camoufox if being ran in headful mode. """ - if headless is False: + if headless: return None # Skip if headless try: monitors = get_monitors()