mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 15:03:17 +00:00
feat: install only Chromium browser
This commit is contained in:
@@ -117,10 +117,10 @@ func InitPlaywright() error {
|
|||||||
logger.Println("Initializing Playwright")
|
logger.Println("Initializing Playwright")
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
// Install Playwright and browsers
|
// Install Playwright and Chromium browser
|
||||||
err = playwright.Install()
|
err = playwright.Install(&playwright.RunOptions{Browsers: []string{"chromium"}})
|
||||||
if err != nil {
|
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()
|
pw, err = playwright.Run()
|
||||||
|
|||||||
Reference in New Issue
Block a user