Browse Source

[Delete] - remove mOriginWhitelist variable occurances

Visakeswaran 4 years ago
parent
commit
b5cea3fb33

+ 0
- 8
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;
151
 
150
 
152
   public RNCWebViewManager() {
151
   public RNCWebViewManager() {
153
     mWebViewConfig = new WebViewConfig() {
152
     mWebViewConfig = new WebViewConfig() {
769
         }
768
         }
770
       }
769
       }
771
 
770
 
772
-      // if (mOriginWhitelist != null && shouldHandleURL(mOriginWhitelist, url)) {
773
-      //   return false;
774
-      // }
775
-
776
       launchIntent(view.getContext(), url);
771
       launchIntent(view.getContext(), url);
777
       return true;
772
       return true;
778
     }
773
     }
905
     public void setUrlPrefixesForDefaultIntent(ReadableArray specialUrls) {
900
     public void setUrlPrefixesForDefaultIntent(ReadableArray specialUrls) {
906
       mUrlPrefixesForDefaultIntent = specialUrls;
901
       mUrlPrefixesForDefaultIntent = specialUrls;
907
     }
902
     }
908
-    // public void setOriginWhitelist(List<Pattern> originWhitelist) {
909
-    //   mOriginWhitelist = originWhitelist;
910
-    // }
911
   }
903
   }
912
 
904
 
913
   protected static class RNCWebChromeClient extends WebChromeClient implements LifecycleEventListener {
905
   protected static class RNCWebChromeClient extends WebChromeClient implements LifecycleEventListener {