1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-23 00:25:15 +01: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
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
3 changed files with 5 additions and 4 deletions

View File

@ -958,7 +958,6 @@ mappings.cdn = {
// Cloudflare Rocket-Loader // Cloudflare Rocket-Loader
'ajax.cloudflare.com': { 'ajax.cloudflare.com': {
'/': { '/': {
'cdn-cgi/scripts/7089c43e/cloudflare-static/rocket-loader.min.': resources.cfRocketLoader,
'cdn-cgi/scripts/04b3eb47/cloudflare-static/mirage2.': resources.mirage2 'cdn-cgi/scripts/04b3eb47/cloudflare-static/mirage2.': resources.mirage2
} }
}, },

View File

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

View File

@ -48,6 +48,7 @@
<li>Fixed: [Chromium] extraHeaders permission for sanitization (<a href="https://codeberg.org/nobody/LocalCDN/issues/442">#442</a>)</li> <li>Fixed: [Chromium] extraHeaders permission for sanitization (<a href="https://codeberg.org/nobody/LocalCDN/issues/442">#442</a>)</li>
<li>Updated: mdb-ui-kit v3.5.0 -> v3.5.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/445">#445</a>)</li> <li>Updated: mdb-ui-kit v3.5.0 -> v3.5.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/445">#445</a>)</li>
<li>Added: bxslider v4.2.15 (<a href="https://codeberg.org/nobody/LocalCDN/issues/446">#446</a>)</li> <li>Added: bxslider v4.2.15 (<a href="https://codeberg.org/nobody/LocalCDN/issues/446">#446</a>)</li>
<li>Fixed: RocketLoader does not load (<a href="https://codeberg.org/nobody/LocalCDN/issues/446">#446</a>)</li>
</ul> </ul>
<div id="generator-section"> <div id="generator-section">
<div class="topic-label"> <div class="topic-label">