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:
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) {
// The first two IDs are used internally during the initialization
if firefoxBinary == "" {
PromptDownload()
return nil, fmt.Errorf("Firefox not found.")
}
if firefoxBinary == "" {
PromptDownload()
return nil, fmt.Errorf("Firefox not found.")
}
c := &firefox{
id: 2,
}