Skip to content

Commit

Permalink
Update from debuggingbook
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-zeller committed Oct 14, 2023
1 parent 3ced3f4 commit 7fa2bdf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions notebooks/shared/bookutils/__init__.py
Expand Up @@ -205,11 +205,10 @@ def HTML(data: Optional[str] = None,
# Get a webdriver
global firefox
if firefox is None:
options = Options()
options = webdriver.FirefoxOptions()
options.headless = headless
profile = FirefoxProfile()
profile.set_preference("layout.css.devPixelsPerPx", repr(zoom))
firefox = webdriver.Firefox(firefox_profile=profile, options=options)
options.set_preference("layout.css.devPixelsPerPx", repr(zoom))
firefox = webdriver.Firefox(options=options)

# Create a URL argument
if data is not None:
Expand Down

0 comments on commit 7fa2bdf

Please sign in to comment.