Improved: Handling with blocked resources

This commit is contained in:
nobody 2020-07-29 07:34:07 +02:00
parent e8445ccde4
commit b35ab41f5e
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
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); validCandidate = requestAnalyzer.isValidCandidate(requestDetails, tab);
if (requestDetails.url.startsWith('https://fonts.googleapis.com/css?family')) { if (requestDetails.url.startsWith('https://fonts.googleapis.com/css?family')) {
if(interceptor.blockGoogleFonts === true || interceptor.blockMissing === true) { if(interceptor.blockGoogleFonts !== false && interceptor.blockMissing !== false) {
return {
'cancel': true
};
} else {
return { return {
'cancel': false 'cancel': false
}; };

View File

@ -24,7 +24,7 @@
New in LocalCDN: New in LocalCDN:
</div> </div>
<ul> <ul>
<li></li> <li>Improved: Handling with blocked resources (reported by email)</li>
</ul> </ul>
<div id="generator-section"> <div id="generator-section">
<div class="topic-label"> <div class="topic-label">