mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Merge pull request #159 from leobm/master
Fix bug in Window. Add return statement to JSBody script for
This commit is contained in:
commit
edf2a47f27
|
@ -93,7 +93,7 @@ public abstract class Window implements JSObject, WindowEventTarget, StorageProv
|
|||
return prompt(message, "");
|
||||
}
|
||||
|
||||
@JSBody(params = { "message", "defaultValue" }, script = "prompt(message, defaultValue);")
|
||||
@JSBody(params = { "message", "defaultValue" }, script = "return prompt(message, defaultValue);")
|
||||
public static native String prompt(String message, String defaultValue);
|
||||
|
||||
@JSBody(params = { "handler", "delay" }, script = "return setTimeout(handler, delay);")
|
||||
|
|
Loading…
Reference in New Issue
Block a user