improvements

This commit is contained in:
paulo committed 2021-11-25 16:49:24 -03:00
1 parent ccae321dc9
commit aee712a88a
5 files changed
+28 -4

No files matched your search

-2
View File
@@ -41,14 +41,12 @@ func (c *Cli) Eval(id string, s string) (map[string]interface{}, error) {
json.Unmarshal(bs, &ret)
return ret, err
}
func (c *Cli) Wait(id string, s string, to int) (string, error) {
ret := ""
bs, err := c.HttpCli().RawPost(fmt.Sprintf("/ipc/chrome/wait/%s?to=%d", id, to), []byte(s))
json.Unmarshal(bs, &ret)
return ret, err
}
func (c *Cli) Send(id string, m string, ps map[string]interface{}) (string, error) {
ret := ""
in := map[string]interface{}{