mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
WebUI: enforce coding style
Actually, not all of them but some that can be enforced by eslint. The changes are made by eslint with minor manual tweaking. PR #17046.
This commit is contained in:
@@ -165,7 +165,8 @@ window.qBittorrent.PropTrackers = (function() {
|
||||
});
|
||||
|
||||
const addTrackerFN = function() {
|
||||
if (current_hash.length === 0) return;
|
||||
if (current_hash.length === 0)
|
||||
return;
|
||||
new MochaUI.Window({
|
||||
id: 'trackersPage',
|
||||
title: "QBT_TR(Trackers addition dialog)QBT_TR[CONTEXT=TrackersAdditionDialog]",
|
||||
@@ -186,7 +187,8 @@ window.qBittorrent.PropTrackers = (function() {
|
||||
};
|
||||
|
||||
const editTrackerFN = function(element) {
|
||||
if (current_hash.length === 0) return;
|
||||
if (current_hash.length === 0)
|
||||
return;
|
||||
|
||||
const trackerUrl = encodeURIComponent(element.childNodes[1].innerText);
|
||||
new MochaUI.Window({
|
||||
@@ -209,7 +211,8 @@ window.qBittorrent.PropTrackers = (function() {
|
||||
};
|
||||
|
||||
const removeTrackerFN = function(element) {
|
||||
if (current_hash.length === 0) return;
|
||||
if (current_hash.length === 0)
|
||||
return;
|
||||
|
||||
const selectedTrackers = torrentTrackersTable.selectedRowsIds();
|
||||
new Request({
|
||||
|
||||
Reference in New Issue
Block a user