mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-10 09:24:59 -06:00
WebUI: Use native function for selecting elements by ID
This commit is contained in:
@@ -26,13 +26,13 @@
|
||||
if (hash === null)
|
||||
return;
|
||||
|
||||
$("peers").focus();
|
||||
document.getElementById("peers").focus();
|
||||
|
||||
$("addPeersOk").addEventListener("click", (e) => {
|
||||
document.getElementById("addPeersOk").addEventListener("click", (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
const peers = $("peers").value.trim().split(/[\r\n]+/);
|
||||
const peers = document.getElementById("peers").value.trim().split(/[\r\n]+/);
|
||||
if (peers.length === 0)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user