dont use var
parent
7beadcee71
commit
abb702506f
|
@ -1,5 +1,5 @@
|
|||
function timeSince(timeStamp) {
|
||||
var now = new Date(),
|
||||
const now = new Date(),
|
||||
secondsPast = (now.getTime() - timeStamp) / 1000;
|
||||
if (secondsPast < 60) {
|
||||
return parseInt(secondsPast) + 's';
|
||||
|
|
Loading…
Reference in New Issue