Missing resources counter moved (#301)

This commit is contained in:
nobody 2021-03-13 07:41:17 +01:00
parent 1b6ab1bdb7
commit 441eb5b5a4
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 4 additions and 3 deletions

View File

@ -44,9 +44,6 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
targetDetails = requestAnalyzer.getLocalTarget(requestDetails, tab.url);
targetPath = targetDetails.path;
if (targetDetails === false) {
++stateManager.tabs[tabIdentifier].missing;
}
if (Regex.GOOGLE_FONTS.test(requestDetails.url)) {
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) {
return interceptor._handleMissingCandidate(requestDetails.url, tabIdentifier);
}