From 42791964cc9a75492f4d70a09fcef36773ca05c0 Mon Sep 17 00:00:00 2001 From: Marcin Olawski Date: Wed, 21 Jun 2017 10:04:33 +0200 Subject: [PATCH] Window.confirm() should return value, fixed. --- jso/apis/src/main/java/org/teavm/jso/browser/Window.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {