doodle/pkg/native/browser_wasm.go

11 lines
200 B
Go
Raw Normal View History

// +build js,wasm
package native
import "syscall/js"
// OpenURL opens a new window to the given URL, for WASM environment.
func OpenURL(url string) {
js.Global().Get("window").Call("open", url)
}