Add old bowser version

This commit is contained in:
Calum McConnell 2021-04-27 23:27:35 -04:00
parent 2f7d67184e
commit 1b8443412a
No known key found for this signature in database
GPG Key ID: EFF5E1D7E0CD9B32
3 changed files with 12 additions and 1 deletions

View File

@ -403,7 +403,11 @@ function create_url() {
url="$CLOUDFLARE/$folder/$version/locales/$jfile"
fi
elif [ "$folder" = "bowser" ]; then
url="$CLOUDFLARE/bowser/$version/bundled.min.js"
if [ "${version::1}" = "2" ]; then
url="$CLOUDFLARE/bowser/$version/bundled.min.js"
else
url="$CLOUDFLARE/bowser/$version/bowser.min.js"
fi
elif [ "$folder" = "select2" ]; then
if [[ $subfile =~ (select2\.min\.js|select2\.full\.min\.js)$ ]]; then
url="$CLOUDFLARE/$folder/$version/js/$subfile"

View File

@ -206,6 +206,7 @@ targets.setLastVersion = function (type, version) {
} else if (type.startsWith('/bootstrap-3-typeahead/4.')) {
return '4.0.2';
} else if (type.startsWith('/bowser/')) {
if (helpers.compareVersion(version, '1.9.4')) return '1.9.4';
return '2.11.0'
} else if (type.startsWith('/bulma/0.')) {
return '0.9.2';

File diff suppressed because one or more lines are too long