Fixing ClipRead function (from json to raw).

master
Pe-Guedss 2021-12-01 14:17:18 -03:00
parent e0f1a0ddd4
commit ed392fd245
1 changed files with 2 additions and 3 deletions

View File

@ -59,9 +59,8 @@ type DEVMODE struct {
} }
func (c *Cli) ClipRead() (string, error) { func (c *Cli) ClipRead() (string, error) {
ret := "" bs, err := c.HttpCli().RawGet(fmt.Sprintf("/ipc/wingui/clip/read"))
err := c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/clip/read"), &ret) return string(bs), err
return ret, err
} }
func (c *Cli) ClipWrite(site string) error { func (c *Cli) ClipWrite(site string) error {