1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Improved: Handling with blocked resources

This commit is contained in:
nobody
2020-07-29 07:34:07 +02:00
parent e8445ccde4
commit b35ab41f5e
2 changed files with 2 additions and 6 deletions

View File

@ -35,11 +35,7 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
validCandidate = requestAnalyzer.isValidCandidate(requestDetails, tab);
if (requestDetails.url.startsWith('https://fonts.googleapis.com/css?family')) {
if(interceptor.blockGoogleFonts === true || interceptor.blockMissing === true) {
return {
'cancel': true
};
} else {
if(interceptor.blockGoogleFonts !== false && interceptor.blockMissing !== false) {
return {
'cancel': false
};