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

Fixed: RocketLoader does not load (#446)

This commit is contained in:
nobody
2021-05-06 06:39:50 +02:00
parent 0c35a7ec35
commit ac41d1a9f6
3 changed files with 5 additions and 4 deletions

View File

@ -139,9 +139,6 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
} else {
resourcePattern = resourcePath.replace(versionNumber, Resource.VERSION_PLACEHOLDER);
}
if (resourcePattern === undefined) {
return false;
}
shorthandResource = shorthands.specialFiles(channelHost, channelPath, destinationSearchString);
if (shorthandResource) {
@ -152,6 +149,10 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
return shorthandResource;
}
if (resourcePattern === undefined) {
return false;
}
for (let resourceMold of Object.keys(resourceMappings)) {
if (resourcePattern.startsWith(resourceMold)) {
let targetPath, versionDelivered, versionRequested, bundle;