mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Use for...of in more places
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -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>";
|
||||
|
||||
Reference in New Issue
Block a user