Correção dos tipos de variável
parent
393154a0ac
commit
6c981f4196
|
@ -69,12 +69,12 @@ func (c *Cli) OpenTabs() (ret []map[string]string, err error) {
|
||||||
return ret, err
|
return ret, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Cli) FindTabByUrl(url string) (ret interface{}, err error) {
|
func (c *Cli) FindTabByUrl(url string) (ret string, err error) {
|
||||||
err = c.HttpCli().JsonGet("/ipc/chrome/findtabbyurl/"+url, &ret)
|
err = c.HttpCli().JsonGet("/ipc/chrome/findtabbyurl/"+url, &ret)
|
||||||
return ret, err
|
return ret, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Cli) FindTabByTitle(title string) (ret interface{}, err error) {
|
func (c *Cli) FindTabByTitle(title string) (ret string, err error) {
|
||||||
err = c.HttpCli().JsonGet("/ipc/chrome/findtabbytitle/"+title, &ret)
|
err = c.HttpCli().JsonGet("/ipc/chrome/findtabbytitle/"+title, &ret)
|
||||||
return ret, err
|
return ret, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue