Remove a stale variable from timeago.js

This commit is contained in:
Cotes Chung 2021-04-02 15:33:25 +08:00
parent 4973a61e39
commit 1c0cd6b6b0
1 changed files with 3 additions and 3 deletions

View File

@ -10,10 +10,10 @@ $(function() {
let intervalId = void 0;
function timeago(iso, prepData) {
function timeago(iso, preposition) {
let now = new Date();
let past = new Date(iso);
let prep = (typeof prepData !== "undefined" ? `${prepData} ` : "");
let prep = (typeof preposition !== "undefined" ? `${preposition} ` : "");
if (past.getFullYear() !== now.getFullYear()) {
toRefresh -= 1;
@ -50,7 +50,7 @@ $(function() {
return minute + " minute" + (minute > 1 ? "s" : "") + " ago";
}
return (isLastmod ? "just" : "Just") + " now";
return "just now";
}
function updateTimeago() {