Extract Domain from URL (#1137)

This commit is contained in:
nobody 2022-09-19 06:20:22 +02:00
parent c5a519a733
commit 703438ce0b
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 4 additions and 1 deletions

View File

@ -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
};