rename hmh.go to main.go and just use open on url instead of open with safari.

This commit is contained in:
Kalle Carlbark 2019-08-25 21:37:10 +02:00
parent 4cb5097341
commit e0733f5ce6
No known key found for this signature in database
GPG key ID: 3FC0C93C5A5A0670

View file

@ -431,7 +431,7 @@ func openbrowser(url string) {
case "windows": case "windows":
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start() err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start()
case "darwin": case "darwin":
err = exec.Command("open", "-a", "Safari", url).Start() err = exec.Command("open", url).Start()
default: default:
err = fmt.Errorf("unsupported platform") err = fmt.Errorf("unsupported platform")
} }