mirror of
https://git.sr.ht/~eliasnaur/gio-cmd
synced 2026-07-06 09:55:33 +00:00
all: cleanup code and upgrade to modern Go facilities
Signed-off-by: ddkwork
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ func (d *JSTestDriver) Start(path string) {
|
||||
pr, pw := io.Pipe()
|
||||
d.Cleanup(func() { pw.Close() })
|
||||
d.output = pr
|
||||
chromedp.ListenTarget(ctx, func(ev interface{}) {
|
||||
chromedp.ListenTarget(ctx, func(ev any) {
|
||||
switch ev := ev.(type) {
|
||||
case *runtime.EventConsoleAPICalled:
|
||||
switch ev.Type {
|
||||
|
||||
Reference in New Issue
Block a user