Appease sonar

This commit is contained in:
amcmanu3 2023-09-04 20:49:55 -04:00
parent a8af1bcdf0
commit 6158ea85b5

View File

@ -98,7 +98,7 @@
function updateAnnouncements(data) {
console.log(data)
let text = "";
for (i = 0; i < data.length; i++) {
for (let i = 0; i < data.length; i++) {
text += `<li class="card-header header-sm justify-content-between align-items-center" id="${data[i].id}"><p style="float: right;"><i data-id="${data[i].id}"class="clear-button fa-regular fa-x"></i></p><a style="color: var(--purple);" href=${data[i].link} target="_blank"><h6>${data[i].title}</h6><small><p>${data[i].date}</p></small><p>${data[i].desc}</p></li></a>`
}
if (data.length > 0) {
@ -114,7 +114,7 @@
let uuid = event.target.getAttribute("data-id");
$(`#${uuid}`).remove();
send_clear(uuid);
notif_count = localStorage.getItem("notif-count") - 1;
let notif_count = localStorage.getItem("notif-count") - 1;
if (notif_count > 0) {
localStorage.setItem("notif-count", notif_count);
$("#notif-count").html(notif_count);