1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Fixed: UI integration (#233)

This commit is contained in:
nobody
2021-01-17 09:52:49 +01:00
parent 784dc29316
commit f4be2cbf43
5 changed files with 30 additions and 16 deletions

View File

@@ -42,8 +42,7 @@ messenger._handleMessageReceived = function (message, sender, sendResponse) {
}
if (topic === 'domain:fetch-is-allowlisted') {
let allowlistRecord = requestAnalyzer.allowlistedDomains[value];
let allowlistRecord = requestAnalyzer.allowlistedDomains[value] || requestAnalyzer.allowlistedDomains[helpers.getWildcard(value)];
sendResponse({'value': Boolean(allowlistRecord)});
return MessageResponse.SYNCHRONOUS;