Skip to content

Commit

Permalink
Fix JS crash
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Jul 27, 2024
1 parent 39d2177 commit b6913f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions frontend/src/liveTimestamps.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import htmx from "htmx.org"

import { formatRelative, formatRelativeShort, fullDateTime } from "./formats"
import { dateRelative, dateRelativeShort, fullDateTime } from "./formats"

const cache = {}

Expand All @@ -18,9 +18,9 @@ export function updateTimestamp(element) {
const format = element.getAttribute("misago-timestamp-format")

if (format == "short") {
element.textContent = formatRelativeShort(cache[timestamp])
element.textContent = dateRelativeShort(cache[timestamp])
} else {
element.textContent = formatRelative(cache[timestamp])
element.textContent = dateRelative(cache[timestamp])
}
}

Expand Down
2 changes: 1 addition & 1 deletion misago/static/misago/js/misago.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion misago/static/misago/js/misago.js.map

Large diffs are not rendered by default.

0 comments on commit b6913f3

Please sign in to comment.