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:
@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user