Use for...of in more places

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2025-04-03 09:13:21 +03:00
parent 408334380e
commit 44226e1bec
5 changed files with 20 additions and 27 deletions

View File

@@ -59,8 +59,8 @@ function importZIP() {
$("#modal-import-success").show();
$("#modal-import-success-title").text("Import successful");
let text = "<p>Processed files:</p><ul>";
for (let i = 0; i < data.files.length; i++) {
text += "<li>" + utils.escapeHtml(data.files[i]) + "</li>";
for (const file of data.files) {
text += "<li>" + utils.escapeHtml(file) + "</li>";
}
text += "</ul>";