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

Added P2P Media Loader Core v0.6.2

This commit is contained in:
nobody42
2020-03-26 09:41:14 +01:00
parent 4077458dcf
commit 38d6c106cf
7 changed files with 21 additions and 6 deletions

View File

@@ -106,7 +106,7 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
targetPath = targetPath.replace(Resource.VERSION_PLACEHOLDER, versionNumber);
// Replace the requested version with the latest depending on major version
version = helpers.setLastVersion(targetPath, versionNumber);
version = helpers.setLastVersion(targetPath, versionNumber).toString();
targetPath = targetPath.replace(versionNumber, version);
hostShorthands = shorthands[channelHost];
@@ -132,7 +132,7 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
// Prepare and return a local target.
return {
'source': channelHost,
'version': version.toString(),
'version': version,
'path': targetPath,
'bundle': bundle
};