Browse Source

[Add] - try removing mOriginWhitelist

Visakeswaran 5 years ago
parent
commit
cb427b2514

+ 7
- 7
android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java View File

147
   protected boolean mAllowsFullscreenVideo = false;
147
   protected boolean mAllowsFullscreenVideo = false;
148
   protected @Nullable String mUserAgent = null;
148
   protected @Nullable String mUserAgent = null;
149
   protected @Nullable String mUserAgentWithApplicationName = null;
149
   protected @Nullable String mUserAgentWithApplicationName = null;
150
-  protected @Nullable List<Pattern> mOriginWhitelist;
150
+  // protected @Nullable List<Pattern> mOriginWhitelist;
151
 
151
 
152
   public RNCWebViewManager() {
152
   public RNCWebViewManager() {
153
     mWebViewConfig = new WebViewConfig() {
153
     mWebViewConfig = new WebViewConfig() {
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
       launchIntent(view.getContext(), url);
776
       launchIntent(view.getContext(), url);
777
       return true;
777
       return true;
905
     public void setUrlPrefixesForDefaultIntent(ReadableArray specialUrls) {
905
     public void setUrlPrefixesForDefaultIntent(ReadableArray specialUrls) {
906
       mUrlPrefixesForDefaultIntent = specialUrls;
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
   protected static class RNCWebChromeClient extends WebChromeClient implements LifecycleEventListener {
913
   protected static class RNCWebChromeClient extends WebChromeClient implements LifecycleEventListener {