fixed lintting issue

This commit is contained in:
j264415 2024-03-07 09:34:14 +00:00
parent 6cc0d05e78
commit 0fa8be7dd0
2 changed files with 13 additions and 14 deletions

View file

@ -78,7 +78,7 @@
border-left: 2px solid var(--primary-border-colour);
}
p a:focus{
p a:focus {
color: #0a6ebd;
text-decoration: underline;
}

View file

@ -362,7 +362,6 @@ class ControlsWaiter {
for (let i = 0; i < tabs.length; i++) {
tabs[i].addEventListener("keydown", this.changeTabs, false);
// tabs[i].addEventListener("keydown", this.navigateFAQList, false);
}
const reportBugInfo = document.getElementById("report-bug-info");
@ -414,7 +413,7 @@ ${navigator.userAgent}
const button = document.getElementById("support-modal").getElementsByClassName("modal-footer");
const close = button[0].firstElementChild;
close.focus();
} else if (ev.key === "Enter" || ev.key === "Space" ||ev.key === " ") {
} else if (ev.key === "Enter" || ev.key === "Space" || ev.key === " ") {
tab.click();
}
}
@ -425,10 +424,10 @@ ${navigator.userAgent}
navigateFAQList(ev) {
const el = ev.target.nextElementSibling;
if (ev.key === "Enter" || ev.key === "Space"|| ev.key === " "){
if (ev.key === "Enter" || ev.key === "Space" || ev.key === " ") {
ev.preventDefault();
const question = el.classList;
if(question !== undefined && question.value){
if (question !== undefined && question.value) {
if (!question.value.includes("show")) {
question.add("show");
} else if (question.contains("show")) {