Skip to content

Commit

Permalink
Fix timeago TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
towerofnix committed Jul 2, 2016
1 parent 746536f commit 0daf914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ if('/share' === window.location.pathname)
if('/users' === window.location.pathname.substr(0, 6))
user()

document.querySelectorAll('.timeago').forEach(function(el) {
for (let el of document.querySelectorAll('.timeago')) {
el.innerHTML = timeago(parseInt(el.innerHTML))
})
}

0 comments on commit 0daf914

Please sign in to comment.