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

Fixed issue with lozad.js

This commit is contained in:
nobody42
2020-03-25 15:31:33 +01:00
parent 23e0893ef0
commit fb286dda1e
8 changed files with 30 additions and 17 deletions

View File

@@ -89,7 +89,7 @@ requestAnalyzer._matchBasePath = function (hostMappings, channelPath) {
requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channelHost, channelPath) {
let resourcePath, versionNumber, resourcePattern, filename, bundle;
let resourcePath, versionNumber, resourcePattern, filename;
resourcePath = channelPath.replace(basePath, '');
@@ -123,7 +123,7 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
}
// Get bundle name
bundle = helpers.determineBundle(channelPath);
let bundle = helpers.determineBundle(channelPath);
if(bundle !== '') {
filename = channelPath.split('/').pop();
targetPath = targetPath + filename + 'm';
@@ -132,7 +132,7 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
// Prepare and return a local target.
return {
'source': channelHost,
'version': version,
'version': version.toString(),
'path': targetPath,
'bundle': bundle
};