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

Chromium: Remove option to block Google Fonts (#1085)

This commit is contained in:
nobody
2022-07-27 18:22:49 +02:00
parent 61957fb94f
commit f1fb6c9a17
7 changed files with 11 additions and 13 deletions

View File

@@ -76,13 +76,6 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
'cancel': false
};
}
} else if (!BrowserType.FIREFOX && (isGoogleFont || isGoogleMaterialIcons)) {
initiatorDomain = helpers.extractDomainFromUrl(tab.url, true);
isListed = helpers.checkAllowlisted(initiatorDomain, interceptor.allowedDomainsGoogleFonts);
// Check if the website is allowed to load Google Fonts
return {
'cancel': interceptor.blockGoogleFonts === true && isListed === false
};
}
if (targetDetails['result'] === false) {