Prompt to download

This commit is contained in:
idk
2020-05-11 22:28:37 -04:00
parent c4225f76da
commit c8b4dcdc74
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
VERSION=0.0.02 VERSION=0.0.03
fmt: fmt:
gofmt -w -s *.go gofmt -w -s *.go

8
ui.go
View File

@ -248,10 +248,10 @@ func (c *firefox) kill() error {
func newFirefoxWithArgs(firefoxBinary string, args ...string) (*firefox, error) { func newFirefoxWithArgs(firefoxBinary string, args ...string) (*firefox, error) {
// The first two IDs are used internally during the initialization // The first two IDs are used internally during the initialization
if firefoxBinary == "" { if firefoxBinary == "" {
PromptDownload() PromptDownload()
return nil, fmt.Errorf("Firefox not found.") return nil, fmt.Errorf("Firefox not found.")
} }
c := &firefox{ c := &firefox{
id: 2, id: 2,
} }