mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-01 20:07:20 +01:00
Font Awesome v4.7.0 woff -> woff2 (#1617)
This commit is contained in:
parent
fe0c0c4f13
commit
b510485127
@ -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 || {};
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user