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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user