Skip to content

Commit

Permalink
Merge branch 'ultrafunkamsterdam:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
filipopo authored Dec 31, 2023
2 parents a1a73e9 + 783b839 commit 46b23b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions undetected_chromedriver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from __future__ import annotations


__version__ = "3.5.3"
__version__ = "3.5.4"

import json
import logging
Expand Down Expand Up @@ -395,7 +395,7 @@ def __init__(
if no_sandbox:
options.arguments.extend(["--no-sandbox", "--test-type"])

if headless or options.headless:
if headless or getattr(options, 'headless', None):
#workaround until a better checking is found
try:
if self.patcher.version_main < 108:
Expand Down Expand Up @@ -485,7 +485,7 @@ def __init__(
else:
self._web_element_cls = WebElement

if options.headless:
if headless or getattr(options, 'headless', None):
self._configure_headless()

def _configure_headless(self):
Expand Down

0 comments on commit 46b23b6

Please sign in to comment.