diff --git a/src/android/InAppBrowser.java b/src/android/InAppBrowser.java index 0603302..b93a918 100644 --- a/src/android/InAppBrowser.java +++ b/src/android/InAppBrowser.java @@ -1379,17 +1379,7 @@ public class InAppBrowser extends CordovaPlugin { @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { super.onPageStarted(view, url, favicon); - String newloc = ""; - if (url.startsWith("http:") || url.startsWith("https:") || url.startsWith("file:")) { - newloc = url; - } - else - { - // Assume that everything is HTTP at this point, because if we don't specify, - // it really should be. Complain loudly about this!!! - LOG.e(LOG_TAG, "Possible Uncaught/Unknown URI"); - newloc = "http://" + url; - } + String newloc = url; // Update the UI if we haven't already if (!newloc.equals(edittext.getText().toString())) {