4
0
mirror of https://github.com/apache/cordova-android.git synced 2025-06-01 21:11:42 +08:00

Optimization code ()

This judgment condition has no use.
This commit is contained in:
任跃兵 2019-11-15 03:24:10 +08:00 committed by Tim Brust
parent f0c9814c04
commit e42fedc820

@ -127,7 +127,7 @@ public class CordovaBridge {
}
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;
try {
array = new JSONArray(defaultValue.substring(4));