Added jQuery v1.7.1 and branching of versions improved (Fixed #49)

This commit is contained in:
nobody42 2020-04-06 18:04:39 +02:00
parent e9078c2649
commit 27eb0d8c17
No known key found for this signature in database
GPG Key ID: AB5145CF05BFE119
3 changed files with 10 additions and 1 deletions

View File

@ -90,6 +90,7 @@ var files = {
'resources/hls.js/0.13.2/hls.min.jsm': true,
// jQuery
'resources/jquery/1.7.1/jquery.min.jsm': true,
'resources/jquery/1.8.3/jquery.min.jsm': true,
'resources/jquery/1.12.4/jquery.min.jsm': true,
'resources/jquery/2.2.4/jquery.min.jsm': true,

View File

@ -409,7 +409,11 @@ helpers.setLastVersion = function (type, version) {
} else if (type.includes('/hls.js/')) {
version = '0.13.2';
} else if (type.includes('/jquery/1.')) {
version = ( helpers.compareVersion('1.8.3', requestVersion )) ? '1.8.3' : '1.12.4';
if (helpers.compareVersion('1.7.1', requestVersion)) version = '1.7.1'; // < v1.7.1
else if (helpers.compareVersion('1.8.3', requestVersion)) version = '1.8.3'; // >= 1.7.2 to <= 1.8.3
else version = '1.12.4'; // >= 1.8.4
} else if (type.includes('/jquery/1.8.')) {
version = '1.8.3';
} else if (type.includes('/jquery/2.')) {
version = '2.2.4';
} else if (type.includes('/jquery/3.')) {

File diff suppressed because one or more lines are too long