Skip to content

Commit

Permalink
[apps/browser] use headless version
Browse files Browse the repository at this point in the history
  • Loading branch information
javierluraschi committed Sep 10, 2024
1 parent 7fc79bf commit 506c733
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/browser/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def take_screenshot():
shutil.copy("screenshot.png", f"storage/screenshot-{int(time.time())}.png")

chrome_options = Options()
chrome_options.add_argument("--headless")
chrome_options.add_argument("--no-sandbox")
chrome_options.add_argument("--disable-dev-shm-usage")
custom_user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
Expand Down

0 comments on commit 506c733

Please sign in to comment.