mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-01-23 16:02:42 +01:00
Extract Domain from URL (#1137)
This commit is contained in:
parent
c5a519a733
commit
703438ce0b
@ -34,7 +34,10 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
||||
let validCandidate, targetDetails, targetDomain, isGoogleFont, isGoogleMaterialIcons, initiatorDomain, isListed;
|
||||
|
||||
if (requestDetails['type'] === WebRequestType.MAIN_FRAME &&
|
||||
helpers.checkAllowlisted(tab.url, requestAnalyzer.allowlistedDomains)) {
|
||||
helpers.checkAllowlisted(
|
||||
helpers.extractDomainFromUrl(tab.url, true),
|
||||
requestAnalyzer.allowlistedDomains
|
||||
)) {
|
||||
return {
|
||||
'cancel': false
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user