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