Skip to content

Commit

Permalink
enhanced webdriver planner
Browse files Browse the repository at this point in the history
  • Loading branch information
adranwit committed Apr 27, 2024
1 parent 509847f commit 89c477c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion service/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ func Bootstrap() {

if webplannerPort, ok := flagset["w"]; ok {
planner := webplanner.New(&webplanner.Config{Port: toolbox.AsInt(webplannerPort)})
go func() {
time.Sleep(time.Second)
openbrowser(fmt.Sprintf("http://localhost:%v/", webplannerPort))
}()
planner.Start()
return
}
Expand Down Expand Up @@ -350,7 +354,7 @@ func printUDFs() {
}

func openbrowser(url string) {
log.Printf("opening http://127.0.0.1:8071/ ...")
log.Printf("opening " + url + " ...")
_ = exec.Command("open", url).Start()
}

Expand Down

0 comments on commit 89c477c

Please sign in to comment.