Missing resources counter moved (#301)
This commit is contained in:
parent
1b6ab1bdb7
commit
441eb5b5a4
|
@ -44,9 +44,6 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
||||||
targetDetails = requestAnalyzer.getLocalTarget(requestDetails, tab.url);
|
targetDetails = requestAnalyzer.getLocalTarget(requestDetails, tab.url);
|
||||||
targetPath = targetDetails.path;
|
targetPath = targetDetails.path;
|
||||||
|
|
||||||
if (targetDetails === false) {
|
|
||||||
++stateManager.tabs[tabIdentifier].missing;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Regex.GOOGLE_FONTS.test(requestDetails.url)) {
|
if (Regex.GOOGLE_FONTS.test(requestDetails.url)) {
|
||||||
let initiatorDomain = helpers.extractDomainFromUrl(tab.url, true);
|
let initiatorDomain = helpers.extractDomainFromUrl(tab.url, true);
|
||||||
|
@ -62,6 +59,10 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (targetDetails === false) {
|
||||||
|
++stateManager.tabs[tabIdentifier].missing;
|
||||||
|
}
|
||||||
|
|
||||||
if (!targetDetails) {
|
if (!targetDetails) {
|
||||||
return interceptor._handleMissingCandidate(requestDetails.url, tabIdentifier);
|
return interceptor._handleMissingCandidate(requestDetails.url, tabIdentifier);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue