mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 21:21:24 -07:00
Clean up functions in global scope
This commit is contained in:
parent
9b64d50660
commit
f7e9ff0fb0
24 changed files with 294 additions and 270 deletions
|
@ -1395,7 +1395,7 @@ window.qBittorrent.DynamicTable = (function() {
|
|||
break; // do nothing
|
||||
default:
|
||||
if (!useSubcategories) {
|
||||
if (categoryHash !== genHash(row['full_data'].category))
|
||||
if (categoryHash !== window.qBittorrent.Client.genHash(row['full_data'].category))
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
|
@ -1417,7 +1417,7 @@ window.qBittorrent.DynamicTable = (function() {
|
|||
break; // do nothing
|
||||
|
||||
default: {
|
||||
const tagHashes = row['full_data'].tags.split(', ').map(tag => genHash(tag));
|
||||
const tagHashes = row['full_data'].tags.split(', ').map(tag => window.qBittorrent.Client.genHash(tag));
|
||||
if (!tagHashes.contains(tagHash))
|
||||
return false;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue