linux环境继续使用chrome浏览器

This commit is contained in:
johlanse 2022-06-04 17:05:07 +08:00
parent 51a0ac51df
commit 71b24a9e14
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ func (c *Core) initNotWindows() {
pwt, err := playwright.Run(&playwright.RunOptions{ pwt, err := playwright.Run(&playwright.RunOptions{
DriverDirectory: dir + "/tools/driver/", DriverDirectory: dir + "/tools/driver/",
SkipInstallBrowsers: false, SkipInstallBrowsers: false,
Browsers: []string{"msedge", "chromium"}, Browsers: []string{"chromium"},
}) })
if err != nil { if err != nil {
log.Errorln("[core]", "初始化playwright失败") log.Errorln("[core]", "初始化playwright失败")