add a const
parent
b99f17216e
commit
9a5c184144
|
@ -10,7 +10,7 @@ for (let twoattrs of document.getElementsByClassName("twoattrs")) {
|
||||||
if (lastCount) {
|
if (lastCount) {
|
||||||
const newComments = pcc - lastCount.c
|
const newComments = pcc - lastCount.c
|
||||||
if (newComments > 0) {
|
if (newComments > 0) {
|
||||||
elems = document.getElementsByClassName(`${pid}-new-comments`)
|
const elems = document.getElementsByClassName(`${pid}-new-comments`)
|
||||||
for (const elem of elems)
|
for (const elem of elems)
|
||||||
{
|
{
|
||||||
elem.textContent = ` (+${newComments})`
|
elem.textContent = ` (+${newComments})`
|
||||||
|
|
Loading…
Reference in New Issue