mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI: use native function to convert to numbers
Also replace `parseInt()` since `Number()` behavior is more intuitive. PR #21831.
This commit is contained in:
@@ -1011,7 +1011,7 @@ const initializeWindows = () => {
|
||||
};
|
||||
|
||||
deleteTrackerFN = (trackerHash) => {
|
||||
const trackerHashInt = Number.parseInt(trackerHash, 10);
|
||||
const trackerHashInt = Number(trackerHash);
|
||||
if ((trackerHashInt === TRACKERS_ALL) || (trackerHashInt === TRACKERS_TRACKERLESS))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user