mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-28 02:49:58 +01:00
Return value optimized
This commit is contained in:
parent
e597707eae
commit
1a9d73634c
@ -140,7 +140,7 @@ helpers.checkAllowlisted = function(domain) {
|
||||
wildcard = helpers.getWildcard(domain);
|
||||
list = requestAnalyzer.allowlistedDomains;
|
||||
|
||||
return list[domain] || list[domainWithoutPrefix] || list[wildcard] || list[domainWithoutPrefix];
|
||||
return Boolean(list[domain] || list[domainWithoutPrefix] || list[wildcard] || list[domainWithoutPrefix]);
|
||||
};
|
||||
|
||||
helpers.extractFilenameFromPath = function (path) {
|
||||
|
Loading…
Reference in New Issue
Block a user