mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Improved: Indicator for missing resources
This commit is contained in:
@@ -31,7 +31,7 @@ var interceptor = {};
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
||||||
let validCandidate, targetDetails, targetPath;
|
let validCandidate, targetDetails, targetPath, targetDetailURL;
|
||||||
|
|
||||||
validCandidate = requestAnalyzer.isValidCandidate(requestDetails, tab);
|
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;
|
++stateManager.tabs[tabIdentifier].missing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user