mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-10-05 22:04:27 +01:00
remake dockerfile
This commit is contained in:
@@ -23,8 +23,9 @@ async def new_browser():
|
||||
Any exceptions that may occur during the creation of the browser instance.
|
||||
|
||||
"""
|
||||
config: webdriver.Config = webdriver.Config()
|
||||
config.sandbox = False
|
||||
config: webdriver.Config = webdriver.Config(
|
||||
browser_executable_path="/usr/bin/chromium", sandbox=True
|
||||
)
|
||||
config.add_argument(f"--load-extension={','.join(downloaded_extentions)}")
|
||||
|
||||
return await webdriver.start(config=config)
|
||||
|
||||
Reference in New Issue
Block a user