Clean up functions in global scope

This commit is contained in:
Chocobo1 2024-02-08 12:03:10 +08:00
parent 9b64d50660
commit f7e9ff0fb0
24 changed files with 294 additions and 270 deletions

View file

@ -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;