Skip to content

Commit

Permalink
chore: simpler headless env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
MRColorR committed Jun 25, 2024
1 parent 5ee9934 commit 4b850c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grass-node_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def initialize_driver(crx_file_paths=None):
driver_options.add_argument('--disable-dev-shm-usage')
driver_options.add_experimental_option('prefs', {'extensions.ui.developer_mode': True})

if os.getenv('HEADLESS_MODE', 'false').lower() == 'true':
if os.getenv('HEADLESS', 'false').lower() == 'true':
driver_options.add_argument('--headless')

driver_options.add_argument(
Expand Down

0 comments on commit 4b850c3

Please sign in to comment.