Fixed: Block Google Fonts if enabled

This commit is contained in:
nobody 2020-08-03 13:28:52 +02:00
parent baa5104281
commit 3e160e4b4a
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 3 additions and 2 deletions

View File

@ -37,9 +37,9 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
// Possible URLs of Google Fonts: https://fonts.googleapis.com/css // Possible URLs of Google Fonts: https://fonts.googleapis.com/css
// https://fonts.googleapis.com/css2 // https://fonts.googleapis.com/css2
if (requestDetails.url.startsWith('https://fonts.googleapis.com/css')) { if (requestDetails.url.startsWith('https://fonts.googleapis.com/css')) {
if(interceptor.blockGoogleFonts !== false && interceptor.blockMissing !== false) { if(interceptor.blockGoogleFonts === true || interceptor.blockMissing === true) {
return { return {
'cancel': false 'cancel': true
}; };
} }
} }

View File

@ -25,6 +25,7 @@
</div> </div>
<ul> <ul>
<li>Fixed: Character encoding problem in popup (<a href="https://codeberg.org/nobody/LocalCDN/issues/71">#71</a>)</li> <li>Fixed: Character encoding problem in popup (<a href="https://codeberg.org/nobody/LocalCDN/issues/71">#71</a>)</li>
<li>Fixed: Block Google Fonts if enabled</li>
</ul> </ul>
<div id="generator-section"> <div id="generator-section">
<div class="topic-label"> <div class="topic-label">