diff --git a/pkg/app/js_wasm.go b/pkg/app/js_wasm.go index ebd05181..c04c4ccc 100644 --- a/pkg/app/js_wasm.go +++ b/pkg/app/js_wasm.go @@ -256,6 +256,10 @@ func newBrowserWindow() *browserWindow { return &browserWindow{value: value{jsValue: js.Global()}} } +func (w *browserWindow) Alert(alertMessage string) { + w.Call("alert", alertMessage) +} + func (w *browserWindow) URL() *url.URL { rawurl := w. Get("location").