Added: AnchorJS by cdn.jsdelivr.net

This commit is contained in:
nobody 2020-11-08 20:08:58 +01:00
parent dd2ff530e6
commit 409d69f158
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 11 additions and 0 deletions

View File

@ -148,6 +148,16 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
'path': 'resources/select2/' + lastVersion + '/' + helpers.extractFilenameFromPath(channelPath),
'bundle': 'Select2'
};
} else if (channelHost + channelPath === 'cdn.jsdelivr.net/npm/anchor-js/anchor.min.js') {
// This CDN always delivers the latest version of 'AnchorJS'
lastVersion = targets.setLastVersion('/anchor-js/4.');
return {
'source': channelHost,
'versionDelivered': lastVersion,
'versionRequested': lastVersion,
'path': 'resources/anchor-js/' + lastVersion + '/anchor.min.jsm',
'bundle': ''
};
} else {
return false;
}

View File

@ -28,6 +28,7 @@
<li>Updated: plyr v3.5.10 -> v3.6.2 (<a href="https://codeberg.org/nobody/LocalCDN/issues/165">#165</a>)</li>
<li>Added: algoliasearch v4.6.0</li>
<li>Updated: AnchorJS v4.2.2 -> v4.3.0</li>
<li>Added: AnchorJS by cdn.jsdelivr.net</li>
</ul>
<div id="generator-section">
<div class="topic-label">