From 9bcd12c4cfd78c23eb95603b18332db654a57db2 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Mon, 9 Nov 2020 00:45:01 +0000 Subject: [PATCH] reset lastLookup when topic changes --- js/topic-handler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/topic-handler.js b/js/topic-handler.js index 0b59883..daac4a0 100644 --- a/js/topic-handler.js +++ b/js/topic-handler.js @@ -4,4 +4,5 @@ document.getElementById('boardID').onchange = function(e){ blocks = [] document.getElementsByClassName("messageFeed")[0].innerText = "" document.getElementById('memUsage').innerText = "0kB" + lastLookup = Math.floor((Date.now() / 1000)) - maxBlockAge } \ No newline at end of file