mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 07:46:17 -07:00
WebUI: iterate over own properties only
This commit is contained in:
parent
b07afa3ea9
commit
64dfb7e122
9 changed files with 38 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue