WebUI: iterate over own properties only

This commit is contained in:
Chocobo1
2024-05-08 15:43:02 +08:00
parent b07afa3ea9
commit 64dfb7e122
9 changed files with 38 additions and 5 deletions

View File

@@ -47,6 +47,9 @@ window.qBittorrent.Download = (function() {
if (data) {
categories = data;
for (const i in data) {
if (!Object.hasOwn(data, i))
continue;
const category = data[i];
const option = new Element("option");
option.set("value", category.name);