forked from github/cordova-android
Making framework only apply for http resources for now, so we don't break non-http handling
This commit is contained in:
parent
409b9af398
commit
ad4512801f
@ -221,8 +221,8 @@ public class CordovaWebViewClient extends WebViewClient {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public WebResourceResponse shouldInterceptRequest(WebView view, String url) {
|
public WebResourceResponse shouldInterceptRequest(WebView view, String url) {
|
||||||
//If something isn't whitelisted, just send a blank response
|
//If something isn't whitelisted, just send a blank response
|
||||||
if(!Config.isUrlWhiteListed(url))
|
if(!Config.isUrlWhiteListed(url) && url.startsWith("http://") || url.startsWith("https://"))
|
||||||
{
|
{
|
||||||
return getWhitelistResponse();
|
return getWhitelistResponse();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user