mirror of https://github.com/miguelmota/cointop
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.
12 lines
257 B
Go
12 lines
257 B
Go
4 years ago
|
// +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)
|
||
|
}
|