From 6671afc690ba6eec283659dbb52b20540ab1b15b Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 22 Jan 2019 21:17:20 -0800 Subject: [PATCH] Fix issue from v1.14.5.6 causing display of 'NaN seconds' before index is loaded. --- src/General/Index.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index da9f59a0e..8acf0e7bc 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -168,7 +168,8 @@ Index = topNavPos = $.id('delform').previousElementSibling $.before topNavPos, $.el 'hr' $.before topNavPos, Index.navLinks - RelativeDates.update $('#index-last-refresh time', Index.navLinks) + timeEl = $ '#index-last-refresh time', Index.navLinks + RelativeDates.update timeEl if timeEl.dataset.utc Main.ready -> if (pagelist = $ '.pagelist')