refactor: move browser device options to pkg/uixt/option pkg

This commit is contained in:
lilong.129
2025-03-03 21:40:50 +08:00
parent 69d06a7215
commit b687abb3c8
4 changed files with 30 additions and 20 deletions

View File

@@ -66,7 +66,7 @@ func (p RouterBaseMethod) GetDevice(c *gin.Context) (device uixt.IDevice, err er
return
}
case "browser":
device, err = uixt.NewBrowserDevice(uixt.WithBrowserId(serial))
device, err = uixt.NewBrowserDevice(option.WithBrowserID(serial))
if err != nil {
RenderErrorInitDriver(c, err)
return