mirror of
https://github.com/daijro/camoufox.git
synced 2026-09-08 16:01:00 +00:00
committed by
Jake Writer
parent
e41e4d6c80
commit
e36e0fe3e1
@@ -330,7 +330,7 @@ def get_screen_cons(headless: Optional[bool] = None) -> Optional[Screen]:
|
||||
Bounds are CSS pixels, the unit Firefox lays its windows out in -- see
|
||||
camoufox.display for why that differs from the monitor's physical size.
|
||||
"""
|
||||
if headless is False:
|
||||
if headless is True:
|
||||
return None # Skip if headless
|
||||
display = largest_display()
|
||||
if display is None:
|
||||
|
||||
Reference in New Issue
Block a user