mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
parent
f0c9814c04
commit
e42fedc820
@ -127,7 +127,7 @@ public class CordovaBridge {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String promptOnJsPrompt(String origin, String message, String defaultValue) {
|
public String promptOnJsPrompt(String origin, String message, String defaultValue) {
|
||||||
if (defaultValue != null && defaultValue.length() > 3 && defaultValue.startsWith("gap:")) {
|
if (defaultValue != null && defaultValue.startsWith("gap:")) {
|
||||||
JSONArray array;
|
JSONArray array;
|
||||||
try {
|
try {
|
||||||
array = new JSONArray(defaultValue.substring(4));
|
array = new JSONArray(defaultValue.substring(4));
|
||||||
|
Loading…
Reference in New Issue
Block a user