mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI: prefer arrow function in callbacks
This commit is contained in:
@@ -75,7 +75,7 @@ window.qBittorrent.PropTrackers = (function() {
|
||||
torrentTrackersTable.clear();
|
||||
|
||||
if (trackers) {
|
||||
trackers.each(function(tracker) {
|
||||
trackers.each((tracker) => {
|
||||
let status;
|
||||
switch (tracker.status) {
|
||||
case 0:
|
||||
@@ -147,7 +147,7 @@ window.qBittorrent.PropTrackers = (function() {
|
||||
},
|
||||
onShow: function() {
|
||||
const selectedTrackers = torrentTrackersTable.selectedRowsIds();
|
||||
const containsStaticTracker = selectedTrackers.some(function(tracker) {
|
||||
const containsStaticTracker = selectedTrackers.some((tracker) => {
|
||||
return (tracker.indexOf("** [") === 0);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user