mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
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:
@@ -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]",
|
||||
|
||||
Reference in New Issue
Block a user