From 703438ce0b9b74f2e9ca29c801f2175933a6fd17 Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 19 Sep 2022 06:20:22 +0200 Subject: [PATCH] Extract Domain from URL (#1137) --- core/interceptor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/interceptor.js b/core/interceptor.js index 0f8b4ad7..6fe1daae 100644 --- a/core/interceptor.js +++ b/core/interceptor.js @@ -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 };