diff --git a/core/constants.js b/core/constants.js index dabb3c9b..58ef7fd3 100644 --- a/core/constants.js +++ b/core/constants.js @@ -199,8 +199,8 @@ const Regex = { 'JSDELIVR_COMBINE': /cdn\.jsdelivr\.net.*\/combine.*jquery.*hogan.*algoliasearch.*autocomplete.*/, 'BOOTSTRAP_DATEPICKER_3': /\/bootstrap-datepicker3.*\.css/, 'BOOTSTRAP_DATEPICKER': /\/bootstrap-datepicker.*\.css/, - 'FONT_AWESOME': /use\.fontawesome\.com\/fa-code\.css/, - 'FONT_AWESOME_WITH_CODE': /use\.fontawesome\.com\/[a-z0-9]{10}\.js/ + 'FONT_AWESOME': /use\.fontawesome\.com\/fa-loader\.css/, + 'FONT_AWESOME_WITH_CODE': /use\.fontawesome\.com\/[a-z0-9]{10}\.(js|css)/ }; const Links = { diff --git a/core/mappings.js b/core/mappings.js index 8ca59394..cc852b9a 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -800,8 +800,8 @@ mappings.cdn = { 'releases/v{version}/css/all': resources.fontawesome5CSS, 'releases/v{version}/css/v4-shims': resources.fontawesome5CSSv4shims, 'releases/v{version}/js/': resources.fontawesome5JS, - 'fa-code.js': resources.webfontloaderFontawesomeJS, - 'fa-code.css': resources.webfontloaderFontawesomeCSS, + 'fa-loader.js': resources.webfontloaderFontawesomeJS, + 'fa-loader.css': resources.webfontloaderFontawesomeCSS, 'webfontloader/{version}/webfontload': resources.webfontloader } }, diff --git a/core/resources.js b/core/resources.js index d693bcd3..510cedf6 100644 --- a/core/resources.js +++ b/core/resources.js @@ -807,11 +807,11 @@ var resources = { 'type': 'application/javascript' }, 'webfontloaderFontawesomeJS': { - 'path': 'resources/webfont/fa-code.jsm', + 'path': 'resources/webfont/fa-loader.jsm', 'type': 'application/javascript' }, 'webfontloaderFontawesomeCSS': { - 'path': 'resources/webfont/fa-code.css', + 'path': 'resources/webfont/fa-loader.css', 'type': 'text/css' }, // WebRTC adapter diff --git a/core/shorthands.js b/core/shorthands.js index 969303de..a444ba5d 100644 --- a/core/shorthands.js +++ b/core/shorthands.js @@ -79,11 +79,12 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) { 'bundle': '' }; } else if (Regex.FONT_AWESOME_WITH_CODE.test(channelHost + channelPath)) { + let fileExtension = channelPath.endsWith('css') ? 'css' : 'jsm'; return { 'source': channelHost, 'versionRequested': '4.6.3', 'versionDelivered': '4.7.0', - 'path': 'resources/webfont/fa-loader.jsm', + 'path': 'resources/webfont/fa-loader.' + fileExtension, 'bundle': '' }; } else if ((channelHost + channelPath) === 'cdn.jsdelivr.net/npm/vue') { diff --git a/pages/updates/updates.html b/pages/updates/updates.html index e49ed6ea..dd8ff28e 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -30,6 +30,7 @@