blob: d88de6bf84b7b1e8dd4f85dde2b14301de5c50de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
package ui
import (
"syscall/js"
)
// OpenUrl opens the specified URL using `window.open`.
func OpenUrl(url string) error {
w := js.Global().Get("window")
w.Call("open", url)
return nil
}
|