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

Improved display of bundles on the statistics page

This commit is contained in:
nobody
2021-02-07 08:09:45 +01:00
parent a083de7d43
commit 25638f8a44
2 changed files with 19 additions and 12 deletions

View File

@ -89,6 +89,11 @@ statistics._filterAndSortData = function () {
statistics._mergeObjects = function (obj, arr) {
for (let [key, value] of Object.entries(obj)) {
let bundle = targets.determineBundle(key);
if (bundle !== '') {
bundle = key.split('/');
key = bundle[0] + '/' + bundle[1] + '/' + bundle[2] + '/';
}
// If CDN/Framework exists, add it, otherwise create new one
if (arr[key]) {
arr[key] += value;