1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Correct redirection for jquery-latest.js and code.jquery.com (#761)

This commit is contained in:
nobody
2021-11-10 06:10:53 +01:00
parent 2225cf96e2
commit 0f6f3f2bcf
2 changed files with 6 additions and 1 deletions

View File

@ -223,7 +223,8 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
'path': `resources/exif-js/${lastVersion}/exif.min.jsm`,
'bundle': ''
};
} else if (CompleteURL.startsWith('ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js')) {
} else if (CompleteURL.startsWith('ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js') ||
CompleteURL.startsWith('code.jquery.com/jquery-latest.')) {
return {
'source': channelHost,
'versionDelivered': '1.11.2',