WebUI: use the correct property for accessing text

In these instances we don't need the rendered result. So use the most efficient
property to access it: `.textContent`.
This commit is contained in:
Chocobo1
2024-07-15 17:06:48 +08:00
parent adde3c3f65
commit 25dd6c72f7
3 changed files with 5 additions and 5 deletions

View File

@@ -187,7 +187,7 @@ window.qBittorrent.PropTrackers ??= (() => {
if (current_hash.length === 0)
return;
const trackerUrl = encodeURIComponent(element.childNodes[1].innerText);
const trackerUrl = encodeURIComponent(element.childNodes[1].textContent);
new MochaUI.Window({
id: "trackersPage",
title: "QBT_TR(Tracker editing)QBT_TR[CONTEXT=TrackerListWidget]",