mirror of
https://github.com/miguelmota/cointop
synced 2024-11-16 21:25:38 +00:00
12 lines
257 B
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)
|
|
}
|