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);
|
filename = requestAnalyzer._handleUncompressedFiles(filename);
|
||||||
} else if (bundle === 'ScrollMagic (Bundle)' && !filename.endsWith('.min.js')) {
|
} else if (bundle === 'ScrollMagic (Bundle)' && !filename.endsWith('.min.js')) {
|
||||||
filename = requestAnalyzer._handleUncompressedFiles(filename);
|
filename = requestAnalyzer._handleUncompressedFiles(filename);
|
||||||
|
} else if (bundle === 'Font Awesome (Fonts) (Bundle)') {
|
||||||
|
filename = requestAnalyzer._handleFontawesomeFiles(targetPath, filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filename === false) {
|
if (filename === false) {
|
||||||
|
@ -307,6 +309,13 @@ requestAnalyzer._handleTinyMCE = function (channelPath, channelHost, initiator)
|
||||||
return filename;
|
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 () {
|
requestAnalyzer._applyAllowlistedDomains = function () {
|
||||||
storageManager.type.get(Setting.ALLOWLISTED_DOMAINS, function (items) {
|
storageManager.type.get(Setting.ALLOWLISTED_DOMAINS, function (items) {
|
||||||
requestAnalyzer.allowlistedDomains = items.allowlistedDomains || {};
|
requestAnalyzer.allowlistedDomains = items.allowlistedDomains || {};
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
<p>Mapping</p>
|
<p>Mapping</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>docsify -> cdn.jsdelivr.net (<a href="https://codeberg.org/nobody/LocalCDN/issues/1616">#1616</a>)</li>
|
<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>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="generator-section">
|
<div id="generator-section">
|
||||||
|
|
Loading…
Reference in New Issue