diff --git a/jso/apis/src/main/java/org/teavm/jso/browser/Window.java b/jso/apis/src/main/java/org/teavm/jso/browser/Window.java index 2dd75b739..c46eacee7 100644 --- a/jso/apis/src/main/java/org/teavm/jso/browser/Window.java +++ b/jso/apis/src/main/java/org/teavm/jso/browser/Window.java @@ -82,10 +82,10 @@ public abstract class Window implements JSObject, WindowEventTarget, StorageProv @JSBody(params = "message", script = "alert(message);") public static native void alert(String message); - @JSBody(params = "message", script = "confirm(message);") + @JSBody(params = "message", script = "return confirm(message);") public static native boolean confirm(JSObject message); - @JSBody(params = "message", script = "confirm(message);") + @JSBody(params = "message", script = "return confirm(message);") public static native boolean confirm(String message); public static String prompt(String message) {