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
|
// 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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue