From ac41d1a9f62b3bd30c6125fd155b73778487081c Mon Sep 17 00:00:00 2001 From: nobody Date: Thu, 6 May 2021 06:39:50 +0200 Subject: [PATCH] Fixed: RocketLoader does not load (#446) --- core/mappings.js | 1 - core/request-analyzer.js | 7 ++++--- pages/updates/updates.html | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/mappings.js b/core/mappings.js index e55a41bf..65ce154f 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -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 } }, diff --git a/core/request-analyzer.js b/core/request-analyzer.js index f674a19f..039dd160 100644 --- a/core/request-analyzer.js +++ b/core/request-analyzer.js @@ -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; diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 113c79c5..5a61ab56 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -48,6 +48,7 @@
  • Fixed: [Chromium] extraHeaders permission for sanitization (#442)
  • Updated: mdb-ui-kit v3.5.0 -> v3.5.1 (#445)
  • Added: bxslider v4.2.15 (#446)
  • +
  • Fixed: RocketLoader does not load (#446)