1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Improved detection of Google Fonts

This commit is contained in:
nobody
2020-07-30 07:55:03 +02:00
parent a9da737114
commit cc16cefc36
2 changed files with 4 additions and 1 deletions

View File

@@ -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