Fixed: Block Google Fonts if enabled
This commit is contained in:
parent
baa5104281
commit
3e160e4b4a
|
@ -37,9 +37,9 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
|||
// Possible URLs of Google Fonts: https://fonts.googleapis.com/css
|
||||
// https://fonts.googleapis.com/css2
|
||||
if (requestDetails.url.startsWith('https://fonts.googleapis.com/css')) {
|
||||
if(interceptor.blockGoogleFonts !== false && interceptor.blockMissing !== false) {
|
||||
if(interceptor.blockGoogleFonts === true || interceptor.blockMissing === true) {
|
||||
return {
|
||||
'cancel': false
|
||||
'cancel': true
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
</div>
|
||||
<ul>
|
||||
<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>
|
||||
<div id="generator-section">
|
||||
<div class="topic-label">
|
||||
|
|
Loading…
Reference in New Issue