mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Making framework only apply for http resources for now, so we don't break non-http handling. I had to squash this to make it pretty
This commit is contained in:
parent
409b9af398
commit
7388c036d7
@ -221,8 +221,8 @@ public class CordovaWebViewClient extends WebViewClient {
|
||||
*/
|
||||
@Override
|
||||
public WebResourceResponse shouldInterceptRequest(WebView view, String url) {
|
||||
//If something isn't whitelisted, just send a blank response
|
||||
if(!Config.isUrlWhiteListed(url))
|
||||
//If something isn't whitelisted, just send a blank response
|
||||
if(!Config.isUrlWhiteListed(url) && (url.startsWith("http://") || url.startsWith("https://")))
|
||||
{
|
||||
return getWhitelistResponse();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user