Skip to content

Commit

Permalink
Set headless=True
Browse files Browse the repository at this point in the history
  • Loading branch information
ayjayt committed Oct 22, 2024
1 parent cd8060f commit 0b6114d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py/kaleido/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def to_image_block(spec, f=None, topojson=None, mapbox_token=None):
return asyncio.run(to_image(spec, f, topojson, mapbox_token))

async def to_image(spec, f=None, topojson=None, mapbox_token=None):
async with Browser(headless=False) as browser:
async with Browser(headless=True) as browser:
if not f:
f = script_path.absolute()
tab = await browser.create_tab(f.as_uri())
Expand Down

0 comments on commit 0b6114d

Please sign in to comment.