mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-24 01:08:20 +01:00
rename method (#1626)
This commit is contained in:
parent
c4f6c3c798
commit
5915ced72f
@ -128,7 +128,7 @@ statistics._setDateRange = function () {
|
||||
} else if (type === 'year') {
|
||||
days = 365;
|
||||
} else if (type === 'all') {
|
||||
days = statistics._daysSinceFirstRelease();
|
||||
days = statistics._daysSinceYearOfRelease();
|
||||
} else {
|
||||
statistics._dateRange = [new Date().toISOString().slice(0, 10)];
|
||||
}
|
||||
@ -272,7 +272,7 @@ statistics._registerListener = function () {
|
||||
});
|
||||
};
|
||||
|
||||
statistics._daysSinceFirstRelease = function () {
|
||||
statistics._daysSinceYearOfRelease = function () {
|
||||
let timeDifference, millisecondsPerDay;
|
||||
|
||||
timeDifference = new Date() - new Date('2020-01-01');
|
||||
|
Loading…
Reference in New Issue
Block a user