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 @@
  • Updated: Bootstrap v4.5.0 -> v4.5.3 (#135)
  • Updated: Terminology (#138)
  • Added: Font Awesome 'v4-shims.css' v5.15.1 (#137)
  • +
  • Fixed: WebFontLoader (#139)
  • diff --git a/resources/webfont/fa-loader.css b/resources/webfont/fa-loader.css index 27c5b43a..02b628d8 100644 --- a/resources/webfont/fa-loader.css +++ b/resources/webfont/fa-loader.css @@ -3,7 +3,7 @@ * File modified by nobody/LocalCDN * */ -@import url('../fontawesome/4.7.0/css/font-awesome-css.min.css'); +@import url('../fontawesome/4.7.0/css/font-awesome.min.css'); /* FONT PATH * -------------------------- */ @font-face { diff --git a/resources/webfont/fa-loader.jsm b/resources/webfont/fa-loader.jsm index a616c2ff..e473ed8a 100644 --- a/resources/webfont/fa-loader.jsm +++ b/resources/webfont/fa-loader.jsm @@ -7,7 +7,7 @@ window.FontAwesomeConfig = { useUrl: "use.fontawesome.com", faCdnUrl: "https://cdn.fontawesome.com:443", - code: "fa-code", + code: "fa-loader", webFontLoaderVersion: "1.6.24" }; window.FontAwesome||(window.FontAwesome={}),function(){function a(a){this.el=a;for(var b=a.className.replace(/^\s+|\s+$/g,"").split(/\s+/),c=0;c