aboutsummaryrefslogtreecommitdiff
path: root/static/js/shobon.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/shobon.js')
-rw-r--r--static/js/shobon.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/static/js/shobon.js b/static/js/shobon.js
index d4b345c..c710bac 100644
--- a/static/js/shobon.js
+++ b/static/js/shobon.js
@@ -75,6 +75,7 @@ function shobon() {
for (var e = 0; e < replyList.length; e++) {
var reply = replyList[e];
var message = reply.getElementsByClassName("msg")[0];
+ var id = 0;
if (shobon_time != "false") {
var date = reply.getElementsByClassName("date")[0];
@@ -82,7 +83,7 @@ function shobon() {
this.title = "Hace " + timeAgo(this.dataset.unix);
});
if (date.textContent.includes("ID:"))
- var id = date.textContent.split(" ")[1];
+ id = date.textContent.split(" ")[1];
date.textContent = localTime(date.dataset.unix, id);
}