Skip to content

Commit

Permalink
put back config
Browse files Browse the repository at this point in the history
  • Loading branch information
bengarvey committed Nov 4, 2024
1 parent fcc8cb7 commit 9750dc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/lineage.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function Lineage() {

const MS_IN_A_DAY = 24 * 60 * 60 * 1000;
const MS_IN_A_WEEK = 7 * MS_IN_A_DAY;
const MS_IN_A_MONTH = 30.437 * MS_IN_A_DAY; // Approximation
const MS_IN_A_YEAR = 365.25 * MS_IN_A_DAY; // Approximation

let currentTime = new Date(config.startDate);
Expand Down Expand Up @@ -249,6 +250,9 @@ function Lineage() {
case 'week':
msIncrement = MS_IN_A_WEEK;
break;
case 'month':
msIncrement = MS_IN_A_MONTH;
break;
case 'year':
default:
msIncrement = MS_IN_A_YEAR;
Expand Down

0 comments on commit 9750dc6

Please sign in to comment.