mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
fix js problems pointed-out by linter
This commit is contained in:
parent
401b5242c7
commit
7b21b078c1
1 changed files with 0 additions and 8 deletions
|
@ -180,14 +180,10 @@ window.qBittorrent.PropTrackers ??= (() => {
|
|||
const addTrackerFN = () => {
|
||||
const selectedTorrents = torrentsTable.selectedRowsIds();
|
||||
if (current_hash.length === 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (selectedTorrents.length !== 0)
|
||||
{
|
||||
current_hash = selectedTorrents.map(encodeURIComponent).join("|");
|
||||
}
|
||||
|
||||
new MochaUI.Window({
|
||||
id: "trackersPage",
|
||||
|
@ -237,14 +233,10 @@ window.qBittorrent.PropTrackers ??= (() => {
|
|||
const removeTrackerFN = (element) => {
|
||||
const selectedTorrents = torrentsTable.selectedRowsIds();
|
||||
if (current_hash.length === 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (selectedTorrents.length !== 0)
|
||||
{
|
||||
current_hash = selectedTorrents.map(encodeURIComponent).join("|");
|
||||
}
|
||||
|
||||
fetch("api/v2/torrents/removeTrackers", {
|
||||
method: "POST",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue