dont use var

pull/104/head
Aevann 2023-01-28 13:33:59 +02:00
parent 7beadcee71
commit abb702506f
1 changed files with 1 additions and 1 deletions

View File

@ -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';