Missing entries in statistics added

This commit is contained in:
nobody 2021-04-16 06:44:15 +02:00
parent 297f65b250
commit 34b65914d0
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 8 additions and 0 deletions

View File

@ -793,6 +793,7 @@ const ListOfFiles = {
'plyr.svg': 'plyr (SVG)',
'popper.min.jsm': 'Popper',
'prototype.min.jsm': 'Prototype',
'prototype.jsm': 'Prototype',
'raven.min.jsm': 'Raven.js',
'react-dom.production.min.jsm': 'ReactDOM',
'react.production.min.jsm': 'React',

View File

@ -207,13 +207,19 @@ statistics._displayNameOfFramework = function (str, type) {
filename = 'Google Charts';
} else if (str === 'resources/fontawesome/5.15.1/css/v4-shims.css') {
filename = 'Font Awesome (Shim)';
} else if (str === 'resources/bootstrap/fonts/') {
filename = 'Bootstrap (Fonts)';
} else {
console.warn(`[LocalCDN] Missing path: ${str}`);
}
}
version = str.match(Resource.VERSION_EXPRESSION);
if (version !== null && version.length > 0) {
version = version[0] === 'latest' ? version[0] : `v${version[0]}`;
} else {
version = '';
console.log(`[LocalCDN] Missing version: ${str}`);
}
lbName.appendChild(document.createTextNode(filename));
@ -221,6 +227,7 @@ statistics._displayNameOfFramework = function (str, type) {
lbVersion.classList.add('version');
line.appendChild(lbName);
line.appendChild(lbVersion);
return line;
}
// If type is CDN