WebUI: Use vanilla JS to create elements

All elements are now created using createElement() method:
https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement

PR #21975.

---------

Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
This commit is contained in:
skomerko
2024-12-14 20:31:44 +01:00
committed by GitHub
parent 4c6dd8e68d
commit 14684c8c83
7 changed files with 167 additions and 190 deletions

View File

@@ -48,7 +48,7 @@ window.qBittorrent.Download ??= (() => {
continue;
const category = data[i];
const option = new Element("option");
const option = document.createElement("option");
option.value = category.name;
option.textContent = category.name;
$("categorySelect").appendChild(option);