Improve code as per Sonar suggestions (#22224)

This commit is contained in:
Michael Telatynski
2022-05-16 16:47:12 +01:00
committed by GitHub
parent 0292f66365
commit ca98529bd2
11 changed files with 465 additions and 331 deletions

File diff suppressed because one or more lines are too long

View File

@@ -17,7 +17,7 @@ function renderConfigError(message: string): void {
const toHide = document.getElementsByClassName("mx_HomePage_container");
const errorContainers = document.getElementsByClassName(
"mx_HomePage_errorContainer",
) as HTMLCollectionOf<HTMLDialogElement>;
) as HTMLCollectionOf<HTMLDivElement>;
for (const e of toHide) {
// We have to clear the content because .style.display='none'; doesn't work