mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Custom block screen (#1050)
This commit is contained in:
@@ -34,6 +34,12 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
||||
let validCandidate, targetDetails, targetDomain, isGoogleFont, isGoogleMaterialIcons, initiatorDomain, isListed;
|
||||
|
||||
targetDetails = requestAnalyzer.getLocalTarget(requestDetails, tab.url);
|
||||
if (targetDetails['result'] === 'blocked') {
|
||||
return {
|
||||
'redirectUrl': chrome.runtime.getURL('resources/blocked/index.html')
|
||||
};
|
||||
}
|
||||
|
||||
stateManager.requests[requestDetails.requestId] = {
|
||||
tabIdentifier, targetDetails
|
||||
};
|
||||
|
Reference in New Issue
Block a user