Font Awesome v4.7.0 woff -> woff2 (#1617)

This commit is contained in:
nobody 2024-01-21 07:16:56 +01:00
parent fe0c0c4f13
commit b510485127
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 10 additions and 0 deletions

View File

@ -259,6 +259,8 @@ requestAnalyzer._getPathOfBundle = function (initiator, channelHost, channelPath
filename = requestAnalyzer._handleUncompressedFiles(filename);
} else if (bundle === 'ScrollMagic (Bundle)' && !filename.endsWith('.min.js')) {
filename = requestAnalyzer._handleUncompressedFiles(filename);
} else if (bundle === 'Font Awesome (Fonts) (Bundle)') {
filename = requestAnalyzer._handleFontawesomeFiles(targetPath, filename);
}
if (filename === false) {
@ -307,6 +309,13 @@ requestAnalyzer._handleTinyMCE = function (channelPath, channelHost, initiator)
return filename;
};
requestAnalyzer._handleFontawesomeFiles = function (targetPath, filename) {
if (targetPath === 'resources/font-awesome/4.7.0/fonts/') {
return filename.replace('fontawesome-webfont.woff', 'fontawesome-webfont.woff2');
}
return filename;
};
requestAnalyzer._applyAllowlistedDomains = function () {
storageManager.type.get(Setting.ALLOWLISTED_DOMAINS, function (items) {
requestAnalyzer.allowlistedDomains = items.allowlistedDomains || {};

View File

@ -28,6 +28,7 @@
<p>Mapping</p>
<ul>
<li>docsify -> cdn.jsdelivr.net (<a href="https://codeberg.org/nobody/LocalCDN/issues/1616">#1616</a>)</li>
<li>Font Awesome v4.7.0 woff -> woff2 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1617">#1617</a>)</li>
</ul>
</div>
<div id="generator-section">