This commit is contained in:
Joe Bowser 2013-04-25 10:20:07 -07:00
commit fea8c5d204

View File

@ -43,13 +43,12 @@ public class IceCreamCordovaWebViewClient extends CordovaWebViewClient {
@Override @Override
public WebResourceResponse shouldInterceptRequest(WebView view, String url) { public WebResourceResponse shouldInterceptRequest(WebView view, String url) {
if(url.contains("?") || url.contains("#") || needsIceCreamSpaceInAssetUrlFix(url)){ //Check if plugins intercept the request
WebResourceResponse ret = generateWebResourceResponse(url); WebResourceResponse ret = super.shouldInterceptRequest(view, url);
if (ret != null) { if(ret == null && (url.contains("?") || url.contains("#") || needsIceCreamSpaceInAssetUrlFix(url))){
return ret; ret = generateWebResourceResponse(url);
}
} }
return super.shouldInterceptRequest(view, url); return ret;
} }
private WebResourceResponse generateWebResourceResponse(String url) { private WebResourceResponse generateWebResourceResponse(String url) {