You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cointop/vendor/github.com/gen2brain/beeep/alert_js.go

12 lines
257 B
Go

// +build js
package beeep
// Alert displays a desktop notification and plays a beep.
func Alert(title, message, appIcon string) error {
if err := Notify(title, message, appIcon); err != nil {
return err
}
return Beep(DefaultFreq, DefaultDuration)
}