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

Code style

This commit is contained in:
nobody
2021-12-05 07:30:31 +01:00
parent aa521e879e
commit 10c0887057
4 changed files with 36 additions and 24 deletions

View File

@@ -204,8 +204,10 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
} else if ((/cdn\.jsdelivr\.net\/npm\/vue@(2|3)/).test(CompleteURL)) {
let version = CompleteURL.match(Resource.VERSION_EXPRESSION);
lastVersion = targets.setLastVersion(`/vue/${version}.`);
if (lastVersion === false) {
return false;
if (lastVersion === '') {
return {
'result': false,
};
}
return {
'source': channelHost,
@@ -232,7 +234,8 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
'path': 'resources/jquery/1.11.2/jquery.min.jsm',
'bundle': ''
};
} else {
return false;
}
return {
'result': false,
};
};