Improved: Indicator for missing resources

This commit is contained in:
nobody 2021-03-30 06:42:34 +02:00
parent a1d2ac49c3
commit 97c2ca2e1d
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,7 @@ var interceptor = {};
*/
interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
let validCandidate, targetDetails, targetPath;
let validCandidate, targetDetails, targetPath, targetDetailURL;
validCandidate = requestAnalyzer.isValidCandidate(requestDetails, tab);
@ -59,7 +59,9 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
}
}
if (targetDetails === false) {
targetDetailURL = helpers.extractDomainFromUrl(requestDetails.url, true);
if (targetDetails === false && !IgnoredHost[targetDetailURL]) {
++stateManager.tabs[tabIdentifier].missing;
}