From 9a10be099354760bedeffa7ea5a49caeab2d4c34 Mon Sep 17 00:00:00 2001
From: AhrenFullStop <aj_posthumus@yahoo.com>
Date: Wed, 9 Oct 2019 10:20:50 +0200
Subject: [PATCH] Update InAppBrowser.java

in line with allowing custom URI schemes and this issue I've changed the if statement that enforces http for no apparent reason: https://github.com/apache/cordova-plugin-inappbrowser/issues/548
---
 src/android/InAppBrowser.java | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

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())) {