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

@ -126,6 +126,17 @@ helpers.extractDomainFromUrl = function (url, normalize) {
return extractedDomain;
};
helpers.getWildcard = function(initiatorDomain) {
let domain = initiatorDomain.split(".");
if (domain.length > 2) {
domain[0] = '*';
domain = domain.join().replace(/,/g, '.');
return domain;
}
};
helpers.extractFilenameFromPath = function (path) {
let pathSegments, filename;