mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-18 12:50:49 +01:00
Firefox part fixed (#857)
This commit is contained in:
parent
b905f01910
commit
428bd38e58
@ -52,7 +52,7 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
|||||||
isGoogleFont = requestAnalyzer.isGoogleFont(targetDomain);
|
isGoogleFont = requestAnalyzer.isGoogleFont(targetDomain);
|
||||||
isGoogleMaterialIcons = requestAnalyzer.isGoogleMaterialIcons(requestDetails.url);
|
isGoogleMaterialIcons = requestAnalyzer.isGoogleMaterialIcons(requestDetails.url);
|
||||||
|
|
||||||
if (BrowserType.FIREFOX && (isGoogleFont || !isGoogleMaterialIcons)) {
|
if (BrowserType.FIREFOX && isGoogleFont && !isGoogleMaterialIcons) {
|
||||||
initiatorDomain = helpers.extractDomainFromUrl(tab.url, true);
|
initiatorDomain = helpers.extractDomainFromUrl(tab.url, true);
|
||||||
isListed = helpers.checkAllowlisted(initiatorDomain, interceptor.allowedDomainsGoogleFonts);
|
isListed = helpers.checkAllowlisted(initiatorDomain, interceptor.allowedDomainsGoogleFonts);
|
||||||
// Check if the website is allowed to load Google Fonts
|
// Check if the website is allowed to load Google Fonts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user