mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Window.confirm() should return value, fixed.
This commit is contained in:
parent
59e5c16b31
commit
42791964cc
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user