mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-04-11 10:32:03 -07:00
Fix get_screen_cons handling headless incorrectly.
This commit is contained in:
parent
2422d622eb
commit
e66f2c19fc
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
Determines a sane viewport size for Camoufox if being ran in headful mode.
|
||||||
"""
|
"""
|
||||||
if headless is False:
|
if headless:
|
||||||
return None # Skip if headless
|
return None # Skip if headless
|
||||||
try:
|
try:
|
||||||
monitors = get_monitors()
|
monitors = get_monitors()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue