feat: install only Chromium browser

This commit is contained in:
Arik Jones (aider)
2024-09-17 14:51:09 -05:00
parent 4586b5daaa
commit 7f468a05bd

View File

@@ -117,10 +117,10 @@ func InitPlaywright() error {
logger.Println("Initializing Playwright")
var err error
// Install Playwright and browsers
err = playwright.Install()
// Install Playwright and Chromium browser
err = playwright.Install(&playwright.RunOptions{Browsers: []string{"chromium"}})
if err != nil {
return fmt.Errorf("could not install Playwright: %v", err)
return fmt.Errorf("could not install Playwright and Chromium: %v", err)
}
pw, err = playwright.Run()