diff --git a/misc/chrome/daemon.go b/misc/chrome/daemon.go index 74ac7f52..e7a6a39b 100644 --- a/misc/chrome/daemon.go +++ b/misc/chrome/daemon.go @@ -2,6 +2,7 @@ package chrome import ( "shylinux.com/x/ice" + "shylinux.com/x/icebergs/base/ctx" "shylinux.com/x/icebergs/base/web" kit "shylinux.com/x/toolkits" ) @@ -25,10 +26,12 @@ func (s daemon) Inputs(m *ice.Message, arg ...string) { s.send(m.Spawn()).Tables(func(value ice.Maps) { s.send(m.Spawn(), value[WID]).Tables(func(value ice.Maps) { m.Push(arg[0], kit.ParseURL(value[URL]).Host) }) }).Sort(arg[0]) + case ctx.INDEX: + ctx.CmdList(m.Message) } } func (s daemon) List(m *ice.Message, arg ...string) { - if len(arg) < 2 || arg[0] == "" || arg[1] == "" { + if len(arg) < 3 || arg[0] == "" || arg[1] == "" { s.send(m, arg).StatusTimeCount() } else { s.send(m, arg[:2], "user.jumps", arg[2]) diff --git a/misc/chrome/spide.go b/misc/chrome/spide.go index a79e13b7..c34bf85d 100644 --- a/misc/chrome/spide.go +++ b/misc/chrome/spide.go @@ -12,7 +12,7 @@ type spide struct { } func (s spide) Download(m *ice.Message, arg ...string) { - m.Cmdy(s.cache.Create, arg).ProcessHold() + m.Cmdy(s.cache, s.Create, arg).ProcessHold() } func (s spide) List(m *ice.Message, arg ...string) { if len(arg) < 2 || arg[0] == "" || arg[1] == "" {