1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-27 10:32:24 +01:00

Firefox part fixed (#857)

This commit is contained in:
nobody 2022-01-30 09:37:42 +01:00
parent b905f01910
commit 428bd38e58
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A

View File

@ -52,7 +52,7 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
isGoogleFont = requestAnalyzer.isGoogleFont(targetDomain);
isGoogleMaterialIcons = requestAnalyzer.isGoogleMaterialIcons(requestDetails.url);
if (BrowserType.FIREFOX && (isGoogleFont || !isGoogleMaterialIcons)) {
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