add a const

master
Aevann 2023-02-18 22:55:39 +02:00
parent b99f17216e
commit 9a5c184144
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ for (let twoattrs of document.getElementsByClassName("twoattrs")) {
if (lastCount) {
const newComments = pcc - lastCount.c
if (newComments > 0) {
elems = document.getElementsByClassName(`${pid}-new-comments`)
const elems = document.getElementsByClassName(`${pid}-new-comments`)
for (const elem of elems)
{
elem.textContent = ` (+${newComments})`