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
'ajax.cloudflare.com': {
'/': {
'cdn-cgi/scripts/7089c43e/cloudflare-static/rocket-loader.min.': resources.cfRocketLoader,
'cdn-cgi/scripts/04b3eb47/cloudflare-static/mirage2.': resources.mirage2
}
},

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;

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>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>Fixed: RocketLoader does not load (<a href="https://codeberg.org/nobody/LocalCDN/issues/446">#446</a>)</li>
</ul>
<div id="generator-section">
<div class="topic-label">