Correção dos tipos de variável

master
Leonardo Domingues 2021-12-01 17:19:03 -03:00
parent 393154a0ac
commit 6c981f4196
1 changed files with 2 additions and 2 deletions

View File

@ -69,12 +69,12 @@ func (c *Cli) OpenTabs() (ret []map[string]string, err error) {
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)
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)
return ret, err
}