mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Font Awesome injections in Chromium deactivated (Fixed #67)
This commit is contained in:
@@ -30,6 +30,7 @@ var requestAnalyzer = {};
|
||||
requestAnalyzer.isValidCandidate = function (requestDetails, tabDetails) {
|
||||
|
||||
let initiatorDomain, isWhitelisted;
|
||||
let fontawesome = new RegExp('\(font-awesome|fontawesome)');
|
||||
|
||||
initiatorDomain = helpers.extractDomainFromUrl(tabDetails.url, true);
|
||||
|
||||
@@ -43,6 +44,12 @@ requestAnalyzer.isValidCandidate = function (requestDetails, tabDetails) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Font Awesome injections in Chromium deactivated (https://gitlab.com/nobody42/localcdn/-/issues/67)
|
||||
if(BrowserType.CHROMIUM && fontawesome.test(requestDetails.url)) {
|
||||
console.warn('[ LocalCDN ] Font Awesome is not fully supported by your browser.');
|
||||
return false;
|
||||
}
|
||||
|
||||
// Only requests of type GET can be valid candidates.
|
||||
return requestDetails.method === WebRequest.GET;
|
||||
};
|
||||
|
Reference in New Issue
Block a user