Bladeren bron

[Add] - try removing mOriginWhitelist

Visakeswaran 5 jaren geleden
bovenliggende
commit
cb427b2514
1 gewijzigde bestanden met toevoegingen van 7 en 7 verwijderingen
  1. 7
    7
      android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java

+ 7
- 7
android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java Bestand weergeven

@@ -147,7 +147,7 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
147 147
   protected boolean mAllowsFullscreenVideo = false;
148 148
   protected @Nullable String mUserAgent = null;
149 149
   protected @Nullable String mUserAgentWithApplicationName = null;
150
-  protected @Nullable List<Pattern> mOriginWhitelist;
150
+  // protected @Nullable List<Pattern> mOriginWhitelist;
151 151
 
152 152
   public RNCWebViewManager() {
153 153
     mWebViewConfig = new WebViewConfig() {
@@ -769,9 +769,9 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
769 769
         }
770 770
       }
771 771
 
772
-      if (mOriginWhitelist != null && shouldHandleURL(mOriginWhitelist, url)) {
773
-        return false;
774
-      }
772
+      // if (mOriginWhitelist != null && shouldHandleURL(mOriginWhitelist, url)) {
773
+      //   return false;
774
+      // }
775 775
 
776 776
       launchIntent(view.getContext(), url);
777 777
       return true;
@@ -905,9 +905,9 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
905 905
     public void setUrlPrefixesForDefaultIntent(ReadableArray specialUrls) {
906 906
       mUrlPrefixesForDefaultIntent = specialUrls;
907 907
     }
908
-    public void setOriginWhitelist(List<Pattern> originWhitelist) {
909
-      mOriginWhitelist = originWhitelist;
910
-    }
908
+    // public void setOriginWhitelist(List<Pattern> originWhitelist) {
909
+    //   mOriginWhitelist = originWhitelist;
910
+    // }
911 911
   }
912 912
 
913 913
   protected static class RNCWebChromeClient extends WebChromeClient implements LifecycleEventListener {