Remove a stale variable from timeago.js
This commit is contained in:
parent
4973a61e39
commit
1c0cd6b6b0
1 changed files with 3 additions and 3 deletions
|
@ -10,10 +10,10 @@ $(function() {
|
||||||
|
|
||||||
let intervalId = void 0;
|
let intervalId = void 0;
|
||||||
|
|
||||||
function timeago(iso, prepData) {
|
function timeago(iso, preposition) {
|
||||||
let now = new Date();
|
let now = new Date();
|
||||||
let past = new Date(iso);
|
let past = new Date(iso);
|
||||||
let prep = (typeof prepData !== "undefined" ? `${prepData} ` : "");
|
let prep = (typeof preposition !== "undefined" ? `${preposition} ` : "");
|
||||||
|
|
||||||
if (past.getFullYear() !== now.getFullYear()) {
|
if (past.getFullYear() !== now.getFullYear()) {
|
||||||
toRefresh -= 1;
|
toRefresh -= 1;
|
||||||
|
@ -50,7 +50,7 @@ $(function() {
|
||||||
return minute + " minute" + (minute > 1 ? "s" : "") + " ago";
|
return minute + " minute" + (minute > 1 ? "s" : "") + " ago";
|
||||||
}
|
}
|
||||||
|
|
||||||
return (isLastmod ? "just" : "Just") + " now";
|
return "just now";
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateTimeago() {
|
function updateTimeago() {
|
||||||
|
|
Loading…
Reference in a new issue