mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Return value optimized
This commit is contained in:
@@ -140,7 +140,7 @@ helpers.checkAllowlisted = function(domain) {
|
|||||||
wildcard = helpers.getWildcard(domain);
|
wildcard = helpers.getWildcard(domain);
|
||||||
list = requestAnalyzer.allowlistedDomains;
|
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) {
|
helpers.extractFilenameFromPath = function (path) {
|
||||||
|
Reference in New Issue
Block a user