mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-23 16:44:34 +01:00
Improved detection of Google Fonts
This commit is contained in:
parent
a9da737114
commit
cc16cefc36
@ -34,7 +34,9 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
||||
|
||||
validCandidate = requestAnalyzer.isValidCandidate(requestDetails, tab);
|
||||
|
||||
if (requestDetails.url.startsWith('https://fonts.googleapis.com/css?family')) {
|
||||
// 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) {
|
||||
return {
|
||||
'cancel': false
|
||||
|
@ -28,6 +28,7 @@
|
||||
<li>Updated: Bootstrap JS & CSS to v4.5.0</li>
|
||||
<li>Removed: Unused jQuery v3.4.1</li>
|
||||
<li>Updated: Welcome page</li>
|
||||
<li>Improved: Detection of Google Fonts</li>
|
||||
</ul>
|
||||
<div id="generator-section">
|
||||
<div class="topic-label">
|
||||
|
Loading…
Reference in New Issue
Block a user