Prompt to download
This commit is contained in:
2
Makefile
2
Makefile
@ -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
8
ui.go
@ -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,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user